laptop and a wrench

Bug

The arcpy.MakeFeatureLayer_management process creates a lock on every feature class in a file geodatabase and does not release them until the python script is closed.

Last Published: January 22, 2021 ArcGIS Pro
Bug ID Number BUG-000121240
SubmittedMarch 27, 2019
Last ModifiedFebruary 7, 2025
Applies toArcGIS Pro
Version found2.3.1
Operating SystemWindows OS
Operating System Version2012
StatusNon-Reproducible

Additional Information

There is no script nor data included with the issue.

Workaround

  1. Run the Copy tool in the script.
  2. Save the compressed geodatabase to a new folder.
  3. Zip up the copy because the folder must not have any lock files.
  4. Run a command to delete the unzipped copy.

 

Refer to the following link for the Copy (https://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy.htm), and Delete (https://pro.arcgis.com/en/pro-app/tool-reference/data-management/delete.htm) tools.

Steps to Reproduce

Bug ID: BUG-000121240

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