Select to view content in your preferred language

ArcGIS Project (.aprx) lock not released

4180
11
09-19-2018 12:26 AM
nita14
by
Frequent Contributor

Dear All,

It seems that arcpy.mp does not release the lock of the resulting (new) aprx document. The following code does create a new aprx file:

aprx_project.saveACopy(os.path.join(workspace, prefix, name_to_save))
del aprx_project

Unfortunately, the lock persists on the new .aprx file. Is there any way to remove it? Only after I close the ArcGIS Pro which I use to run the script, the lock is released.

Any hints are much appreciated!

Adam


ArcGIS Pro v.2.2.2

Tags (1)
11 Replies
YousifAlmamalachy
Emerging Contributor

Same problem here V 3.2.2

0 Kudos
MeghanBlair
Occasional Contributor

I am having this same issue using arcpy.mp.ArcGISProject and the pro project gets locked into Read-Only mode. 

prj = arcpy.mp.ArcGISProject(prjPath)

del prj

del prj doesn't work to unlock the project. Any suggestions on how to get the script to unlock the project?

0 Kudos