laptop and a wrench

Erro

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

ArcGIS GIS Server
Número de ID do Erro BUG-000168472
EnviadoJune 20, 2024
Última ModificaçãoNovember 11, 2024
Aplica-se àArcGIS GIS Server
Versão encontrada11.3
Sistema OperacionalWindows Server
Versão do Sistema Operacional2022
StatusAs Designed

Informações Adicionais

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.

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: BUG-000168472

Software:

  • ArcGIS GIS Server

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download