laptop and a wrench

Error

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

Última publicación: January 31, 2020 ArcGIS Pro
Número de ID del error BUG-000126272
EnviadoOctober 24, 2019
Última modificaciónJuly 21, 2025
Relacionado conArcGIS Pro
Versión encontrada2.4.2
Sistema operativoWindows OS
Versión de sistema operativo10.0
Versión corregida2.5
EstadoFixed

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000126272

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga