laptop and a wrench

Error

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 del error BUG-000157211
EnviadoApril 4, 2023
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada3.0.3
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida3.2
EstadoFixed

Información adicional

This issue is addressed in ArcGIS Pro 3.2.

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000157211

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga