Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [lock]

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

1
vote
1answer
33 views

UpdateCursor can't acquire lock, but can acquire lock in TestSchemaLock

import arcpy import os.path arcpy.env.workspace = "C:/Users/melis/Documents/HenryWork.gdb" arcpy.env.overwriteOutput = True buffer = "LS_buffer" landcov = "ForestLC_clip" #create search cursor to ...
0
votes
1answer
36 views

It's possible to lock a data set programmatically through the API in Carto

We are automating the creation of data sets with Carto. Now we would like to be able to lock to avoid unwanted changes in the data. We know that this can be done through the dashboard, but is it ...
4
votes
1answer
104 views

Weird schema lock issue

I wrote a Python script that produces several output features layers in separate .gdb's. As I am testing and modifying my code, I generally go into arcCatalog, find the .gdb under which the feature ...
2
votes
2answers
80 views

Breaking up geodatabase table with more than 1000 records into multiple tables with 1000 records maximum in each using ArcPy?

I'm trying to use the arcpy.da.SearchCursor and arcpy.da.InsertCursor objects to scan through a table with more than 1000 records and create multiple geodatabase tables with a maximum of 1000 records ...
2
votes
4answers
48 views

Can´t add features to an ArcMap project because a GDB lock of my own computer ArcGIS

I'm trying to add some data from a GDB to an ArcMap project, but i am not abble to do it because of an existing lock. I have checked the origin of the lock and it says it´s from my own PC. Actually, ...
0
votes
1answer
369 views

Understanding schema locks in File Geodatabase registered to ArcGIS Server?

I have a folder containing many File GDBs. I registered this folder with my ArcGIS Server machine. I then published some mxd from ArcMap with data from some of those same fGDBs. The service is working ...
0
votes
0answers
74 views

Intersect Issue - Cannot find a lock error

Having difficulty creating a new layer using Intersect. I have two functional layers: one which depicts woodland cover of a given jurisdiction and another which depicts areas of well-drained soil ...
1
vote
1answer
148 views

Locking QGIS project file? [duplicate]

Is it possible to lock a QGIS project file, so only I can open it with a password? I work with a QGIS 2.18 version and I'm looking for a solution inside the QGIS software. in my map, i use only with ...
1
vote
0answers
19 views

Layers move when using specific CRS

Using Google Satellite for a basemap and polygons (KML) drawn from Google Earth to create additional polygons using landscape features present on Google Earth and Google Basemap, within the original ...
-2
votes
2answers
343 views

Stopping ArcMap locking shapefiles after removing them?

When I load a shapefile into the ArcMap 10.3.1 table of contents from either the ArcMAP built in catalog window, over the yellow plus sign or by drag-and-drop from ArcCatalog, I am then unable to ...
1
vote
0answers
99 views

GDB lock remains when a layer is removed from the MXD [closed]

I have a script which removes a layer from the MXD, and then re-creates the feature from scratch in a GDB and adds the layer back in. If I remove the layer manually before running the script, it runs ...
3
votes
1answer
151 views

QGIS locking TAB files within the same organisation

I work in an office which uses Mapinfo, and all of our spatial datasets are saved as TAB files. A few of us also use QGIS to supplement our work. We're having issues where if someone has a TAB file ...
1
vote
2answers
830 views

How to lock the composer extent in QGIS?

Is there a way to lock the print composer view extent map? This is my print composer: If I change the scale bar in the canvas the composer change also. I try to use those options but with no success. ...
0
votes
1answer
633 views

Deleting or replacing existing table in ArcPy gives ERROR 000601?

I'm doing an interface with ArcGIS 10.2 ando Python 2.7 scripts. I can create new tables with arcpy, but when I run a second time, to replace created tables I need to delete the existing tables to ...
3
votes
1answer
2k 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
237 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 ...
1
vote
1answer
334 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 empty ...
0
votes
1answer
60 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 ...
4
votes
0answers
654 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
144 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
81 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 ...
1
vote
1answer
1k 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
83 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 ...
-5
votes
1answer
1k 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 ...
3
votes
2answers
283 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 ...
2
votes
2answers
911 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
3k views

ArcPy release lock files [duplicate]

I have created a script that splits a shapefile into multiple new shapefiles and adds them to an ArcMap document. When running the program a second time to overwrite those shapefiles, lock-files are ...
4
votes
0answers
61 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
1k 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), ...
2
votes
2answers
835 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
178 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
1k 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 ...
5
votes
2answers
2k 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 ...
2
votes
3answers
5k 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 ...
16
votes
1answer
2k 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 ...
4
votes
5answers
24k 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 water ...
3
votes
4answers
2k views

Releasing 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 ...
2
votes
0answers
334 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
491 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
165 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
2k 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
887 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: ...
1
vote
2answers
411 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
870 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 ...
11
votes
4answers
6k views

ArcGIS Python SearchCursor file locking?

I have a script that gets a value from a shapefile's field to return to the user. It seems that only when the arcpy.SearchCursor is called ArcMap 10.0 locks the file and it doesn't get removed ...
6
votes
3answers
16k 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 ...
3
votes
3answers
2k views

Avoiding dbo.arcsde LOCK issue while exporting to ArcSDE?

I had a spatial db connection open in arcmap. While exporting to SDE with a console app I get an error in the console: Lock request conflicts with an established lock [DBO]. Does this just mean ...
7
votes
3answers
4k views

Cannot get rid of lock on file geodatabase and feature class created in Python script

I have a python script, (for ArcGIS 10), that creates a new file geodatabase, creates a new feature class in that file geodatabase and then reads data from an SDE feature class to populate the new ...
11
votes
1answer
3k 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 ...