laptop and a wrench

Bogue

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

ArcGIS GIS Server
Numéro d’ID de bogue BUG-000168472
EnvoiJune 20, 2024
Dernière modificationNovember 11, 2024
S’applique àArcGIS GIS Server
Version trouvée11.3
Système d’exploitationWindows Server
Version du système d’exploitation2022
StatutAs Designed

Informations supplémentaires

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.

Solution de contournement

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)

Étapes pour reproduire

ID de bogue: BUG-000168472

Logiciel:

  • ArcGIS GIS Server

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement