laptop and a wrench

Bogue

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

Dernière publication: January 31, 2020 ArcGIS Pro
Numéro d’ID de bogue BUG-000126272
EnvoiOctober 24, 2019
Dernière modificationJuly 21, 2025
S’applique àArcGIS Pro
Version trouvée2.4.2
Système d’exploitationWindows OS
Version du système d’exploitation10.0
Version de correction2.5
StatutFixed

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000126272

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement