| Número de ID del error |
BUG-000179061 |
| Enviado | August 27, 2025 |
| Última modificación | September 11, 2025 |
| Relacionado con | ArcGIS Pro |
| Versión encontrada | 3.4.3 |
| Sistema operativo | Windows OS |
| Versión de sistema operativo | N/A |
| Estado | Known Limit
Después de la revisión por parte del equipo de desarrollo, se ha determinado que este problema está relacionado con una limitación conocida del software que está fuera del control de Esri. La sección Información adicional del problema puede contener más explicaciones.
|
Información adicional
This behavior is as designed and is a known limitation. When passing only the name of a feature class to arcpy.Describe (and other functions or tools that accept a short name), it first looks for the feature class in the layers of the map. If no layer is found, it then searches in the arcpy.env.workspace. Many tools, functions, and user workflows are dependent on the software behaving this way. The documentation is updated to better represent this expected behavior.
The best practice when writing scripts is to pass through the fully qualified path of the object to the function or tool. The path can be built from prior pieces of code:
path = os.path.join(arcpy.env.workspace, ds, fc)
arcpy.Describe(path)
Solución alternativa
Use best practices when writing scripts by passing through the fully qualified path of the object to the function or tool. The path can be built from prior pieces of code: path = os.path.join(arcpy.env.workspace, ds, fc) arcpy.Describe(path)
Pasos para reproducir