A mechanism that restricts access to a computer file by allowing only one user or process access at any specific time.

learn more… | top users | synonyms

2
votes
1answer
70 views

Checking if feature class locked in ArcGIS using ArcPy?

I'm trying to find a way to determine whether a feature class is locked before trying to alter it. In one database I want to remove a feature class completely, and in another I want to add extra ...
1
vote
1answer
21 views

ArcMap generated “*.sr.lock” files interrupt Append function

whenever I try to append several shapefile tables in ArcMAP I receive a "read-only" error associated to the recipient file. Several 'sr.lock" files are generated associated to this failure and I ...
0
votes
0answers
27 views

FreeWriteLock() not removing lock on file geodatabase

I am trying to work on making bulk inserts and deletes but I am having trouble releasing the write lock on the table. I made a small sample project with only one insert to test the lock and the lock ...
1
vote
1answer
41 views

Accessing File Geodatabase on server?

In my company I am working with ArcGIS for Dektop on my PC with data stored at the company server (mapped path). I have trouble working with File-GDBs: I can not import data to the GDB (only an ...
0
votes
1answer
25 views

Checking if ModelBuilder model is in use by testing for Schema locks?

Is it possible to get ArcGIS to check if someone else is using a model by checking schema lock and potentially display an error saying that it is already in use and maybe provide information on who it ...
1
vote
0answers
67 views

QGIS: Release file lock on file used in a processing algorithm at the end of script

I am using runalg (qgis:joinattributesbylocation) on two QgsVectorLayer objects. At the end of my script I'm trying to delete all the files created during the script. I can delete everything except ...
3
votes
1answer
75 views

ESRI add-in not installed automatically after build (locked-down environment)

We are using Microsoft Visual Studio 2010 to compile ESRI ArcMap 10.0 add-ins. Generally it works without problems. But we have some PC with very high security policies. For example they have (beside ...
2
votes
1answer
63 views

Keeping record of lock files when editing geodatabases using ArcGIS for Desktop?

In my organization, my group edits several Geodatabases and I am trying to find a way to keep track of them when GDBs are edited. Is there an Esri function or possible an Excel script that would ...
0
votes
0answers
56 views

Phantom Lock on Feature Dataset

I have a phantom lock on a feature dataset in a file geodatabase (ArcGIS 10.2) that will not allow editing of any of the underlying feature classes. I can edit anywhere else on the geodatabase and can'...
0
votes
1answer
326 views

How do you delete a feature class if ArcCatalog locks the geodatabase?

I'm trying to delete a feature class from a personal geodatabase using ArcCatalog but the file is locked because it's opened exclusively by me. The process fails to get a schema lock. Well of course ...
1
vote
1answer
42 views

Why is there a lock when using arcpy.DeleteField_management in arcgis 10.0?

This code only works when ArcCatalog is closed or the featureclass has never been opened by ArcCatalog. For other arcpy management functions this is not the case, but when ArcCatalog is open, I get ...
-4
votes
1answer
407 views

Handling ArcPy locks in Python script?

i am writing script which uses different Tools of arcgis and implementing different functionalities .. My script consists in different Functions running in an order. Each function is connected to each ...
0
votes
0answers
59 views

Script for Arcpy console Lock file gets removed

I am running a script via python console to batch add and calculate new fields of all shapefiles in the current dataframe. Sometimes, especially if I have more than 5 shapefiles to be processed, the ...
2
votes
2answers
143 views

ArcGIS File Geodatabase import failure on TS-453Pro

This is a very device-specific question but maybe someone has ideas. Our problem is that we cannot import files into our File Geodatabases that are stored on a NAS device. When the import function is ...
1
vote
2answers
243 views

ArcSDE Locks With No Owner

Running enterprise SDE on Sql Server 2008, ArcGIS 10.1, SP1. The issue is old locks on all feature classes within a specific feature dataset that aren't being released. When viewed with an admin ...
4
votes
1answer
1k views

arcpy release lock files [duplicate]

I have created a script that splits a shape file into multiple new shapefiles and adds them to an ArcMap document. When running the program a second time to overwrite those shape files lock-files are ...
2
votes
0answers
40 views

QGIS is locking the clipboard from other application? (SitesPlus)

We are starting to use QGIS along with Sales Forecasting software Sites Plus by Gravitec. An ugly problem just popped up: Whenever QGIS is open, any attempts to calculate a data table in SitesPlus ...
6
votes
1answer
560 views

Pause ArcPy script until feature class lock goes away

My script needs to copy data into a feature class to an SDE geodatabase that might have a lock on it from another application. I shouldn't break the lock (that app has priority over a data update), ...
1
vote
1answer
203 views

edit lock layer

I have a question. I want to make a protected processing imported layers from the sqlite database. Is there in QGIS 2.0 a function or a plugin or do I have to insert directly into the data? Thank ...
4
votes
0answers
116 views

New SQL Monitor Showing Database Deadlocks, Should I be alarmed?

We recently installed a SQL Monitoring tool that is raising High Alerts for SQL Server Deadlocks on my SDE database at random times during the day. Using the information provided in the Alert I have ...
1
vote
1answer
980 views

Debugging Select By Attribute tool within loop giving ERROR 000358: Invalid expression Cannot acquire a lock?

I have seen several similar posts related to this technique but I am still having issues. The following script is intended to select all points from one shapefile that are within the boundaries of a ...
4
votes
2answers
879 views

Problems with a FileGeodatabase locking

We have file geodatabase on a network drive, version 9.2, which locks every time a specific machine starts up ArcMap 10.0 or ArcCatalog 10.0. This machine isn't actually reading anything from this ...
0
votes
0answers
212 views

Lock file on shapefile persisting with arcpy.ImportMetadata_conversion

I've got a script that does a number of things to two shapefiles, and it appears that the metadata import step is creating a lock file on only one of the shapefiles that persists even after del arcpy. ...
2
votes
3answers
2k views

Locate and delete ArcGIS Desktop Lock files

I wan´t to simply delete the lock files that ArcGIS writes and doesn´t delete after removing data from the contents window. As my ArcGIS Desktop takes around 4 minutes to start, I am getting really ...
11
votes
1answer
918 views

Releasing PyQGIS file locks?

I was wondering what triggers the release of file locks in pyQGIS? I am trying to delete a few data sources (used temporarily) by calling QgsVectorFileWriter.deleteShapeFile, but I have to quit QGIS ...
2
votes
1answer
8k views

Error: cannot acquire a lock when editing in ArcMap 10.1

We have a problem with a shapefile feature class. Periodically it will not save edits with an error message as the following: Cannot save edits; cannot acquire a lock Working in 10.1 with a ...
3
votes
3answers
1k views

How to release locks to temp files after ArcPy script crashes in ArcMap?

Sometimes when I'm testing an ArcPy script and it ends with exception, ArcMap is still holding locks to some temp files (I run my scripts through ArcMap). I cannot run the script any more, because it ...
1
vote
0answers
276 views

Adding multiple layers to Tilemill from a single sqlite DB

This is a repost of a question I had over at the MapBox support board. Since I wasn't having much luck over there, I'm hoping I would have better success here. I'm having trouble adding more than a ...
2
votes
1answer
320 views

Why are layers imported into a DB with Spatialite-Gui locked from editing?

I have a Spatialite DB which I have imported some shp files too using Spatialite-Gui. I have full read-write access to these layers via the Spatialite-Gui, however when I open these layers from QGIS I ...
2
votes
1answer
141 views

What is causing sr.lock on tables after looping?

The following code puts an sr.lock on each table in my List. What’s causing my tables to lock up? I understand my script is reading or opening my tables temporarily to perform the “...
0
votes
2answers
1k views

Unable to delete .lock files within geodatabase using Python

I am having problems with lock files while deleting and copying geodatabases for backup purposes. print "Now backing up your Geodatabase" distutils.dir_util.remove_tree (r"\\Msukserver\gis\...
2
votes
0answers
581 views

QGIS: opening a shapefile without an exclusive file lock [closed]

UPDATE: I did some analysis of what happens with the locking and it looks like QGIS doesn't use an exclusive lock. It just requires (non-exclusive?) write lock to the file. So this C# code fails: ...
9
votes
4answers
4k views

Python script - how to avoid exclusive schema lock error?

I have a script for updating some features on my database every night (just for copying and replacing some features). This features are "read-only". My problem is that I can't avoid that these ...
1
vote
2answers
336 views

Add record in related table ArcPad

i have a layer form (named form_layer) containing a combobox and allows to add records into the related table, by showing a form of the related table (named form_table) When i try to add record ...
6
votes
1answer
584 views

Releasing GeoServer WFS-T Feature Lock

For some reason I'm having trouble finding any documentation about releasing feature locks in a GeoServer WFS (or any WFS for that matter). I can easily request a FeatureLock with a request like this ...
6
votes
3answers
10k views

ArcGIS sr.lock “LOCK file” how to delete?

http://forums.arcgis.com/threads/312-Beta-10-Lock-Files ArcGIS 10: Lock Files According to the above post the only way to delete these sr.lock files is to completely exit all ArcGIS programs. When ...
11
votes
1answer
2k views

How to disconnect all open GDB locks in ArcMap?

I am having trouble releasing GDB locks in ArcMap 9.3. Does anyone know a way to disconnect from all open GDB connections in ArcMap 9.3. I could close and re-open arcMap, but that seems to be a ...