-
Notifications
You must be signed in to change notification settings - Fork 15
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 Runtime Error on 3.12 #118
Comments
This issue has characteristics of a problem I have seen a few times that I have not been able to solve. If you look at the traceback, none of the line numbers, except the last one in the third-party library, correspond to lines that are actually running code; they are items in a list or comments or the closing round bracket. Also, except for line 994, the lines shown are not the same as the lines in the current script. As far as I can figure out, this mis-match between the error traceback and the current code usually happens when the source code is changed while the code is being run. Since I don't think that is what is really happening with users of the toolbox, it might be because Arc continues to run a cached version of the code even after the toolbox has been replaced. Please try these steps and let me know
In fact, if you could run the tool after each of these steps, that could be helpful too. |
Ah! I apologize. Despite the odd traceback reporting, I think you are right about def rule3_12. |
Thanks. It fixes the issue with GeologicMap and GeoMaterialDict. But it does fail on geologyAnno, which is a nonstandard annotation feature class that our client requests. I don't know if validate database should be able to handle that or if it's our responsibility to remove annotations before running validate database and add them back. On a separate note, if rule3_12 was the issue I don't understand how I was getting different results (i.e seeing the same gdb fail then succeed on the same code). It should have failed every time. |
Yes! I am surprised I didn't get notice of this error earlier. |
Thank you validate database does work now! Although DMUtoDocx raises the same error described in issue #111. If that change can be made to the master branch that would be really helpful. |
Good to hear and thanks for the reminder. Just pushed out a new release. |
Occasionally when running validate database I will get a Runtime Error on Rule 3.12 even on gdbs that previously succeeded and were Level 3 compliant.
On closer look the problem seems to come from rule function 3_12 and the ds.ExecuteSQL which executes SELECT commands on _IDs that don't exist like on feature dataset GeologicMap or even tables like GeoMaterialDict (which from my understanding shouldn't have a GeoMaterialDict_ID, I am new to GEMS so I could be misinterpreting something).
ExecuteSQL seems to be raising exceptions sometimes rather than returning None.
I have worked around it with this try statement. But I think there is a better solution than that.
The text was updated successfully, but these errors were encountered: