Bug
| Bug ID Number | BUG-000126272 |
|---|---|
| Submitted | October 24, 2019 |
| Last Modified | July 21, 2025 |
| Applies to | ArcGIS Pro |
| Version found | 2.4.2 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Version Fixed | 2.5 |
| Status | Fixed |
Remove the table and save before publishing:
search_table = mp.listTables()[0]
print("Table is ",search_table)
mp.removeTable(search_table) #REMOVE TABLE FROM PRO
print("Table is ",search_table)
prj.save()
for mp in maps:
publish_layer = mp.listLayers()[0]
arcpy.mp.CreateWebLayerSDDraft(publish_layer, sddraft, "Habitatz", 'MY_HOSTED_SERVICES', 'FEATURE_ACCESS','', True, True, False, True, False)#create sddraft
arcpy.StageService_server(sddraft, sd)
arcpy.UploadServiceDefinition_server(sd, 'My Hosted Services')
print("UPDATING LAYER")
Add the table back when needed.
Bug ID: BUG-000126272
Software:
Get help from ArcGIS experts
Download the Esri Support App