Skip to content

Validate Database Runtime Error on 3.12 #118

@mahithedula

Description

@mahithedula

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.

Screenshot 2024-10-17 123607

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.

try:
    res = ds.ExecuteSQL(sql)
except RuntimeError:
    continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions