terrafirma_theo

arcpy BUG: ArcGIS Pro 2.4.1 FGDB lock files not clearing

Discussion created by terrafirma_theo on Sep 17, 2019
Latest reply on Sep 17, 2019 by tpcolson

Quick summary:

 

ArcGIS Pro 2.2: arcpy starts an editing session on a polygon Feature Class in a File Geodatase (LOCK files created in FGDB), exports a MapSeries map to JPG with that Feature Class as the index layer, then stops editing on that Feature Class (LOCK files automatically delete from FGDB).

 

ArcGIS Pro 2.4.1: arcpy starts an editing session on a polygon Feature Class in a File Geodatase (LOCK files created in FGDB), exports a MapSeries map to JPG with that Feature Class as the index layer, then stops editing on that Feature Class (LOCK files REMAIN in FGDB). The arcpy script moves on to create the next polygon in order to export the next mapseries page but then ERRORS with:

000464: Cannot get exclusive schema lock. Either being edited or in use by another application.—Help | ArcGIS Desktop 

 

Updating software is meant to fix problems like this, not introduce them... I'm assuming this is a bug?

 

As expected, uninstalling 2.4.1 and reinstalling 2.2 solves this issue.

I have logged a bug report with ESRI. But I'd like to hear other people's thoughts here.

Outcomes