Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some python scripts I have written to create a lot of objects. I write these, in code, to a couple of FGDB's. If I happen to open ArcCatalog in one of these FGDB's, the application falls over, saying it cannot gain a lock on it.

Is this stock behaviour in ArcCatalog? I have not ever done these things together before, so haven't seen it happen. Has anyone else experienced this? Is there a way to stop it happening?


arcgisscripting.ExecuteError: ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application.

share|improve this question
If you got the file geodatabase from someone else, and they copied it while it was open, there will be stale .lock files in it too - you should remove the ones that don't match your computer. – mwalker May 18 '11 at 15:45
up vote 1 down vote accepted

not stock behavior.
Mine works fine (if not a bit slow).
The lock means that there is an instance (possibly an arcmap process) that didn't get stopped.
Check your task manager process tab.
Also it could be that arcgiscachemgr.exe has it.

If all that isn't where the problem lies... you might try creating a blank fgdb and step into it from there.

share|improve this answer
It is running a process in ArcPy, I thought I'd indicated that? – Hairy May 18 '11 at 13:51
if you open arccatalog you have an arcmap and an arcgiscachemgr process running also. That is where the lock comes from. – Brad Nesom May 18 '11 at 14:08
I don't get arcmap and arcgiscachemgr running when I start ArcCatalog – Hairy May 18 '11 at 14:13
@Hairy - my mistake. Arccatalog "can" run inside of the arcmap process (if you run it inside of arcmap). If you start it standalone it has it's own process (arccatalog.exe). irregardless - when you start any esri software and do anything to a data set (including click on it) you generate a lock. (see answer for screenshot). This lock is what is keeping your arcpy from "standing up" – Brad Nesom May 18 '11 at 15:12
Thanks Brad, fair comment; more of a server man myself. +1 – Hairy May 18 '11 at 16:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.