laptop and a wrench

漏洞

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

上次发布: February 11, 2021 ArcGIS Pro
漏洞 ID 编号 BUG-000136941
已提交January 22, 2021
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本2.7
操作系统Windows OS
操作系统版本10.0
状态Will Not Be Addressed

附加信息

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

解决办法

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

重现步骤

漏洞 ID: BUG-000136941

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项