laptop and a wrench

Bogue

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

ArcGIS Pro
Numéro d’ID de bogue BUG-000157211
EnvoiApril 4, 2023
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée3.0.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction3.2
StatutFixed

Informations supplémentaires

This issue is addressed in ArcGIS Pro 3.2.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000157211

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement