laptop and a wrench

Bug

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

ArcGIS Pro
Bug ID Number BUG-000157211
SubmittedApril 4, 2023
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found3.0.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.2
StatusFixed

Additional Information

This issue is addressed in ArcGIS Pro 3.2.

Workaround

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

Steps to Reproduce

Bug ID: BUG-000157211

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options