laptop and a wrench

Bug

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

Last Published: February 11, 2021 ArcGIS Pro
Bug ID Number BUG-000136941
SubmittedJanuary 22, 2021
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.7
Operating SystemWindows OS
Operating System Version10.0
StatusWill Not Be Addressed

Additional Information

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

Workaround

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")

Steps to Reproduce

Bug ID: BUG-000136941

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options