laptop and a wrench

漏洞

The arcpy.mp schema lock applied through Python IDLE does not match between ArcGIS Pro 2.9 and 3.0, and ArcGIS Pro 3.1 and 3.2.

ArcGIS Pro
漏洞 ID 编号 BUG-000165850
已提交March 11, 2024
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本3.2.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

This is not supported and is being marked as designed.  When opening project 'x' and then, from that project, calling a script that opens project 'x' again via its path, it is the equivalent of opening the same project a second time. The second instance is read-only. This is reproducible in the UI without Python. Open project x, then open it again. The second instance title reads 'Project X [Read Only]'.  In the second instance, try adding a field and saving the changes. The same "Cannot get exclusive schema lock" error is returned. This may have worked in an earlier release of ArcGIS Pro, but around the 2.9 release, the application introduced the read-only lock. Arcpy.mp was extended to provide an isReadOnly property on the ArcGISProject object to enable confirming if a project can be saved. The following note is in the ArcGISProject class help topic. Note: Projects can be referenced multiple times, but only the first reference can be saved directly because the other references will be opened as read-only. The ArcGISProject object has an isReadOnly property that can be used to determine a project's read state before calling a method such as saveACopy instead of save.

解决办法

Declare a variable by hard coding the path to the feature class rather than using arcpy.mp to access the feature class.

重现步骤

漏洞 ID: BUG-000165850

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项