laptop and a wrench

漏洞

arcpy.LayerToKML fails with Error 999999 after being published as a geoprocessing service when the input is in JSON format.

ArcGIS GIS Server
漏洞 ID 编号 BUG-000168472
已提交June 20, 2024
上次修改时间November 11, 2024
适用范围ArcGIS GIS Server
找到的版本11.3
操作系统Windows Server
操作系统版本2022
状态As Designed

附加信息

This is expected behavior. The arcpy.LayerToKML function requires a layer as input (feature layer, raster layer, mosaic layer, group layer, or layer file) and not JSON. The workaround makes the JSON file a feature set, which meets the tool's requirements.

解决办法

For script tools, replace the following line in the Python script:

input_feature_set = arcpy.GetParameter(0)

with the following:

try:

  input_feature_set = arcpy.FeatureSet(arcpy.GetParameter(0).JSON)

except:

  input_feature_set = arcpy.GetParameter(0)

重现步骤

漏洞 ID: BUG-000168472

软件:

  • ArcGIS GIS Server

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项