laptop and a wrench

漏洞

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

上次发布: January 31, 2020 ArcGIS Pro
漏洞 ID 编号 BUG-000126272
已提交October 24, 2019
上次修改时间July 21, 2025
适用范围ArcGIS Pro
找到的版本2.4.2
操作系统Windows OS
操作系统版本10.0
修正版本2.5
状态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.

重现步骤

漏洞 ID: BUG-000126272

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项