FAQ: Why am I getting schema locks on shapefiles?
Why am I getting schema locks on shapefiles?
The mechanism for locking shapefiles has changed with ArcMap 10.0. Lock files are created in the file system and correspond to the particular shapefile and to the type of lock required by the system. These .lock files are automatically created and deleted at runtime. Normally, they do not remain in the file system once the application has been closed (e.g., ArcMap, ArcCatalog). But these files can occasionally remain following a crash. If this is the case, they can be safely deleted. If a .lock file cannot be deleted, it is a valid, live lock, and some process is still actively using the shapefile.
Note: This new locking mechanism for shapefiles now conforms to one that has been in place for file geodatabases since version 9.2.Below are some examples of schema locks on shapefiles.
- shapefile_name.shp.COMPUTERNAME.####.####.sr.lock - appears when ArcMap is accessing the data
- shapefile_name.shp.COMPUTERNAME.####.####.sr.lock - appears when ArcCatalog is accessing the data
- shapefile_name.shp.ed.lock - appears when editing the data in ArcMap
Last Published: 9/23/2019
Article ID: 000011134
Software: Legacy Products ArcMap 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1, 10