Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to upgrade File Geodatabases using a Python script that runs fine until the step where it runs the Upgrade Geodatabase tool. The error is:

"ERROR 999999: Error executing function.\nFailed to execute"

The error can also be seen when the Upgrade Geodatabase tool is run manually so I have not re-included the code which can be found in an earlier question which led to this one.

Does anyone know what would cause this error?

share|improve this question
1  
What happens when you use the Upgrade Geodatabase tool to perform the upgrade on this file geodatabase (i.e. the first one in your listed workspaces) outside of ArcPy? If that works use the Geoprocessing | Results window to Copy As Python Snippet and run just that from a Python test script to convince yourself that there is nothing special about it being run from there. Also, try adding in print statements to make sure that every variable is set to what you think it is. Another quick thought is "Does this work if you change folder names to something NOT starting with a number? –  PolyGeo Nov 12 '13 at 22:27
    
I Tried everything including naming folders to just words, I am running it as a stand alone script, I wonder if that's the reason for the error. –  GBh Nov 12 '13 at 22:32
    
What happens when you use the Upgrade Geodatabase tool to perform the upgrade on this file geodatabase (i.e. the first one in your listed workspaces) outside of ArcPy? –  PolyGeo Nov 12 '13 at 22:36
    
If I do the upgrade manually in Arc-catalog(by right clicking and going to properties), it throws up no error. –  GBh Nov 12 '13 at 22:41
2  
Typically any time I get the ERROR 999999 it seems to be from lock issues. I close out of everything and run the python stand alone and it works. Is there anything opening the databases first? –  eseglem Nov 13 '13 at 1:14
show 3 more comments

1 Answer

This is a Question where I think your best way forward will be to contact your local Esri Support because by doing that you should have the option of submitting the offending file geodatabase to them for analysis of what within it may be upsetting the Upgrade Geodatabase tool.

share|improve this answer
add comment

Your Answer

 
discard

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.