laptop and a wrench

Erro

Using the arcpy.da.Describe() function on a group layer with multiple layers within ends with a hard crash in ArcGIS Pro.

ArcGIS Pro
Número de ID do Erro BUG-000157211
EnviadoApril 4, 2023
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada3.0.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa3.2
StatusFixed

Informações Adicionais

This issue is addressed in ArcGIS Pro 3.2.

Solução Provisória

As a workaround there are two options:

Use the arcpy.Describe command with the following result:

desc = arcpy.Describe(lyr)

print(desc)

>>> <geoprocessing describe data object object at 0x0000029FAADF2D10>

Use the arpy.da.Describe in the following way:

aprx = arcpy.mp.ArcGISProject("CURRENT")

m = aprx.activeMap

lyr = m.listLayers()[0]

print(lyr.name)

>>> TEST_PY

desc_da = arcpy.da.Describe(lyr)

print(desc_da)

>>> {'catalogPath': 'TEST_PY', 'FIDSet': None, 'children': [{'catalogPath': '', 'FIDSet': None, 'aliasName': '', 'attributeRules': [], 'baseName': '', …

and so on

Etapas para Reproduzir

ID do Erro: BUG-000157211

Software:

  • ArcGIS Pro

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