laptop and a wrench

Error

The addDataFromPath function in ArcGIS Pro fails to add a feature class if the project path is not set to CURRENT.

Última publicación: February 11, 2021 ArcGIS Pro
Número de ID del error BUG-000136941
EnviadoJanuary 22, 2021
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.7
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

User error. Save the .aprx file before exiting the code.

Solución alternativa

To add the data using the addDataFromPath function, the project must be opened and the path provided must be CURRENT.

aprx = arcpy.mp.ArcGISProject("CURRENT")

Pasos para reproducir

ID del error: BUG-000136941

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga