Skip to main content

Questions tagged [lock]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
48 views

Using dask.distributed with rioxarray rio.to_raster results in `ValueError: Lock is not yet acquired` [closed]

I am trying to write some code using dask.distributed.Client and rioxarray to_raster that: Concatenates two rasters (dask arrays) Applies a function across all blocks in the concatenated array Writes ...
katieb1's user avatar
  • 31
1 vote
1 answer
110 views

Run QGIS tool from standalone Python keeps locks on files

I have a Python application that runs some QGIS processing tools. The tools are called in a loop and I am looking to clean up the tool outputs (shapefiles) in between each iteration. I have found ...
Alex Gray's user avatar
2 votes
0 answers
61 views

QGIS: editing vector layer with 'delete feature' option locked

I need a vector layer to be editable, to change feature geometry and attributes, but at the same time, I need to prevent users from deleting features in the layer. Is there a way of locking the '...
lukabana's user avatar
  • 103
1 vote
0 answers
44 views

ModelBuilder with iterate raster - Tools won't overwrite temporary rasters from the previous iteration due to schema lock

I have a model based on an iterate raster. One of the steps is to create a 'temporary' Viewshed, which after the subsequent process is intended to be overwritten by the next iteration. However when ...
Psoralea's user avatar
0 votes
1 answer
201 views

ArcPy with ArcMap cannot delete file

I have a Python tool to calculate some simple statistics on a lot of features. I use arcpy.Statistics_analysis to create a DBF file with stats for a feature class, register the results, then pass to ...
David Remotti's user avatar
2 votes
1 answer
200 views

Checking for locked files in ArcMap

I am trying to understand how ArcGIS adds layers and the problems involved with repeated calls to an Arc Python tool to which a script is attached (ArcMap 10.5). I created a stripped down (no ...
William's user avatar
  • 171
0 votes
0 answers
49 views

Unable to Package Data in ArcMap, LOCK files?

My organization still uses ArcReader (we are working on the transition to Pro) which is fine, but I tried to package some data today for our field guys and said there was an unexpected error in ...
Kara Grace's user avatar
2 votes
0 answers
806 views

UpdateCursor cannot acquire lock if attribute table is opened in ArcGIS Pro

I wrote a script tool for someone to allow them to clean all whitespace errors (leading/trailing spaces, 2+ consecutive white spaces, convert empty strings to nulls), and aside from one issue it works ...
John's user avatar
  • 607
0 votes
0 answers
305 views

Removing a Lock From a Field in ArcGIS Online

I'm trying to remove the lock on a map layer in ArcGIS Online that belongs to a map being used in field collection. It's missing some data. I've tried un-indexing it and that did nothing. Does anyone ...
Chad Leftwich's user avatar
0 votes
1 answer
392 views

Remove .sr lock on shapefile after removing layer from map using ArcObjects and C#

I am having difficulty figuring out how to remove .sr lock files from shapefiles using ArcObjects and C# after removing the associated layer from the map. I notice that using the straight UI in ...
Weequay's user avatar
  • 101
1 vote
0 answers
393 views

How can I get QGIS to release/unlock a geopackage with 1 layer after use in python? Geopackage/Permission Error (WinError 32)

I have a python script to update 4 authoritative geopackage files with additions and changes made to copies of the geopackages in the field (field geopackages). Once the new records and edited ...
JonJon's user avatar
  • 53
6 votes
2 answers
631 views

How to lock a shapefile in QGIS so only I can edit

I am doing a project using shapefiles in QGIS. These will be sent to somebody who will view in QGIS and I want to put a lock on the data so that it can be viewed but not edited by somebody else ...
Caroline's user avatar
  • 169
0 votes
1 answer
126 views

Using Topo to Raster tool

I am trying to make a DEM using topo to raster tool. When it is done a message pops up that some drawings Cannot acquire a lock, and the DEM is not visible. I have made a DEM before with the same data ...
Lia's user avatar
  • 1
2 votes
0 answers
102 views

Releasing ArcMap memory by removing *.sr.lock files from shapefiles

Is there a method of removing *.sr.lock files from shapefiles to release memory consumption without closing out of an ArcMap application? I am attempting to run code that will cycle through 200+ ...
Weequay's user avatar
  • 101
1 vote
1 answer
222 views

Editing file geodatabase while other users read/view it gives ERROR 000224

Is there way to edit data within a file geodatabase while other user read/view data only. I deployed a file geodatabase and other users view the data but my process scripts can not edit the data and ...
Amadeus's user avatar
  • 513
7 votes
1 answer
714 views

Is it possible to lock layer order in Layer Browser Panel in QGIS?

I want to share my projects with my colleauges. The used projects are really huge because of many implemented layers. In order to prevent struggles (wrong overlapping etc.) within the layer order ...
Ser Robin's user avatar
  • 101
1 vote
0 answers
273 views

Files locked after running a Python script [closed]

I can run a Python script that uses qgsVectorLayer, qgsRasterLayer and many functions like processing:runalg("qgis.difference"......) and os.popen("gdalwarp -q -cutline.......) but if I want to run it ...
Namoat's user avatar
  • 307
1 vote
1 answer
923 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 ...
Melissa's user avatar
  • 165
0 votes
1 answer
55 views

Is it possible to block 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 ...
egofer's user avatar
  • 359
4 votes
1 answer
885 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 ...
gwydion93's user avatar
  • 1,903
3 votes
2 answers
220 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 ...
Robert Hadsell's user avatar
2 votes
4 answers
130 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, ...
Javier Suarez's user avatar
0 votes
1 answer
1k 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 ...
umbe1987's user avatar
  • 3,785
1 vote
1 answer
590 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 ...
newGIS's user avatar
  • 4,072
1 vote
0 answers
29 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 ...
Juan Swanepoel's user avatar
-1 votes
2 answers
1k 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 ...
Robert Buckley's user avatar
1 vote
0 answers
228 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 ...
Mike's user avatar
  • 335
3 votes
1 answer
262 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 ...
Bill's user avatar
  • 641
2 votes
3 answers
3k 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. ...
newGIS's user avatar
  • 4,072
0 votes
1 answer
2k 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 ...
S.Rai's user avatar
  • 309
8 votes
2 answers
4k 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 ...
Midavalo's user avatar
  • 29.8k
1 vote
1 answer
652 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 ...
Luis Enrique Ramos-Santiago's user avatar
1 vote
1 answer
792 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 ...
Alex's user avatar
  • 752
0 votes
1 answer
74 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 ...
MSS's user avatar
  • 177
6 votes
0 answers
2k 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 ...
David M.'s user avatar
3 votes
1 answer
392 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 ...
Propper's user avatar
  • 611
2 votes
1 answer
103 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 ...
GISense's user avatar
  • 65
1 vote
1 answer
120 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 ...
Robert Buckley's user avatar
-5 votes
1 answer
2k 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 ...
Waqar ahmad's user avatar
3 votes
2 answers
386 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 ...
RichT's user avatar
  • 147
2 votes
2 answers
3k 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 ...
Dan Jurgella's user avatar
  • 2,378
4 votes
1 answer
5k 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 ...
tseberik's user avatar
4 votes
0 answers
82 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 ...
mike's user avatar
  • 1,001
6 votes
1 answer
2k 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), ...
Erica's user avatar
  • 8,982
2 votes
2 answers
3k views

Editing lock layer?

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?
user8839's user avatar
  • 603
4 votes
0 answers
198 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 ...
Jeff T.'s user avatar
  • 41
1 vote
1 answer
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 ...
user3174452's user avatar
5 votes
2 answers
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 ...
Dan_h_b's user avatar
  • 2,118
3 votes
3 answers
7k 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 ...
Robert Buckley's user avatar
19 votes
3 answers
4k views

Releasing PyQGIS file locks [closed]

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 before I can do ...
user avatar