laptop and a wrench

Bug

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

ArcGIS GIS Server
Bug-ID-Nummer BUG-000168472
EingereichtJune 20, 2024
Zuletzt geändertNovember 11, 2024
Gilt fürArcGIS GIS Server
Gefunden in Version11.3
BetriebssystemWindows Server
Betriebssystemversion2022
StatusAs Designed

Zusätzliche Informationen

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.

Workaround

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)

Schritte zur Reproduzierung

Bug-ID: BUG-000168472

Software:

  • ArcGIS GIS Server

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln