ERROR

Cannot acquire a schema lock because of an existing lock

Last Published: July 5, 2021

Error Message

When creating a new feature dataset or feature class in a file geodatabase located on a network drive, an error is returned indicating that the file is locked even though only one user is accessing the file. While this issue was originally reported through feature dataset and feature class creation, any schema change that creates new files in the file geodatabase may encounter this behavior.

Cause

Some anti-virus programs running on the network have been identified as part of this problem. This can result in locking issues between the anti-virus software and ArcGIS. Some anti-virus programs scan newly created files on creation. This can result in locking issues. Anti-virus programs known to cause this problem include BitDefender and Etrust. Review the issue, in general, with an RDBMS. Refer to Microsoft: How to choose antivirus software to run on computers that are running SQL Server for more information.

Solution or Workaround

  • Modify the anti-virus program to not scan newly created files in network drive directories where the file geodatabase data is being maintained. Refer to the documentation for the anti-virus software being used, as the solution may vary between products.
  • Create and load data on a local drive.
  • Shut down the anti-virus program scans for the file geodatabase directories.

Article ID:000010290

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options