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-Nummer BUG-000157211
EingereichtApril 4, 2023
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version3.0.3
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.2
StatusFixed

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: BUG-000157211

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln