Bug
Bug ID Number | BUG-000157211 |
---|---|
Submitted | April 4, 2023 |
Last Modified | June 5, 2024 |
Applies to | ArcGIS Pro |
Version found | 3.0.3 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Version Fixed | 3.2 |
Status | Fixed |
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
Get help from ArcGIS experts
Download the Esri Support App