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
Same problem here V 3.2.2
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?