Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate database fail #73

Open
hsnellen opened this issue Jul 6, 2021 · 5 comments
Open

Validate database fail #73

hsnellen opened this issue Jul 6, 2021 · 5 comments

Comments

@hsnellen
Copy link

hsnellen commented Jul 6, 2021

I'm trying to run the "Validate Database" tool on a .gdb on my desktop, but receive this error:
image

I've tested different databases on my desktop that aren't being edited, and have attempted to use the tool in Catalog too.
Any ideas?

@hsnellen
Copy link
Author

hsnellen commented Aug 6, 2021

Has anyone had a chance to view this?

@ethoms-usgs
Copy link
Collaborator

There have been problems with the method the tool uses to try to determine if the gdb is being edited. I would just open GeMS_ValidateDatabase_AGP2.py in a text editor and comment out the lines where the function is called.

that is, lines 889 and 890 would look like this.

#if editSessionActive(inGdb):
#    arcpy.AddWarning ("\nDatabase is being edited. Results may be incorrect if there are unsaved edits\n")

The Pro version of the tool uses a different method that I think works better. I will update the ArcMap copy, but in the meantime comment out those lines and just double-check that you are, in fact, not editing.

@hsnellen
Copy link
Author

Yeah I triple checked and there was no editing being done, but I commented out that portion of the code and now the tools runs on my gdb!
Thank you very much.

@ethoms-usgs
Copy link
Collaborator

I see now what caused that error. The editSessionActive function happens to looks for the GeoMaterialDict table (it could be anything, but it was thought that would always in the gdb and not be empty). If you add the table, the tool should run past that function. Again, at some point I should move the Pro version of that function into the ArcMap code, but the workaround for now would be to add GeoMaterialDict (also, it's required!)

@ethoms-usgs
Copy link
Collaborator

The latest version of the toolbox now uses a completely different method to check for active edit sessions. Try that out and let us know how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants