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 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.

  • 1
    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

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.

|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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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