laptop and a wrench

Bogue

Using the Python method hasattr() produces different error messages when used in ArcMap 10.7.1 versus ArcGIS Pro 2.5 (beta).

Dernière publication: August 23, 2021 ArcGIS Pro
Numéro d’ID de bogue BUG-000128367
EnvoiFebruary 4, 2020
Dernière modificationApril 16, 2025
S’applique àArcGIS Pro
Version trouvée2.5 Beta
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction2.9
StatutFixed

Solution de contournement

There are ArcPy capabilities to allow querying for a layer to get the attribute information. For example, querying 'lyr.dataSource' works as well. Refer to ArcPy - Layer

https://pro.arcgis.com/en/pro-app/arcpy/mapping/layer-class.htm for more information.

Étapes pour reproduire

ID de bogue: BUG-000128367

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