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: April 10, 2019 ArcGIS for Desktop
Bug ID Number BUG-000121239
SubmittedMarch 27, 2019
Last ModifiedFebruary 7, 2025
Applies toArcGIS for Desktop
Version found10.6.1
Operating SystemWindows OS
Operating System Version2012
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support. Note that ArcGIS 10.8.2 is the current release of ArcGIS Desktop and will enter Mature Support in March 2024 (https://support.esri.com/en-us/products/arcmap/life-cycle). There are no plans to release an ArcGIS Desktop 10.9, and we recommend that you migrate to ArcGIS Pro. See Migrate from ArcMap to ArcGIS Pro (https://www.esri.com/en-us/arcgis/products/arcgis-pro/resources/migrate) for more information.

Workaround

  1. Run the Copy tool in the script and save the compressed geodatabase to a new folder.
  2. Compress the copy as it does not have any lock files.
  3. Run a command to delete the unzipped copy.
For more information, refer to the provided links:Copy: http://desktop.arcgis.com/en/arcmap/10.6/tools/data-management-toolbox/copy.htmDelete: http://desktop.arcgis.com/en/arcmap/10.6/tools/data-management-toolbox/delete.htm

Steps to Reproduce

Bug ID: BUG-000121239

Software:

  • ArcGIS for Desktop

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