laptop and a wrench

Bug

Standalone tables are erroneously included when publishing a single layer in an ArcGIS Pro map through ArcPy.

Last Published: January 31, 2020 ArcGIS Pro
Bug ID Number BUG-000126272
SubmittedOctober 24, 2019
Last ModifiedJuly 21, 2025
Applies toArcGIS Pro
Version found2.4.2
Operating SystemWindows OS
Operating System Version10.0
Version Fixed2.5
StatusFixed

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000126272

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options