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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動