Hello all,
I am getting an exception (sometimes, but not every time) when trying to call a Named Query. The python script exists on the root container of a Perspective View, in order to refresh the screen after certain events.
This environment has an inheritance structure of [ProjectC and other Children] > ProjectB > ProjectA. There are at least 30 child projects all inheriting from this chain. Also, the “Gateway Scripting Project” is set to ProjectB.
My issue, is that the Named Query I am trying to execute ONLY exists in ProjectC, but the exception occurs from searching ProjectB. And again, sometimes the script is successful. One other thing to note is that the Named Query is in its own “local” folder, and there are numerous other “inherited” folders. At this time, only one of the inherited folders is overridden, but that path is not involved in this screen refresh script.
Python Exception:
Traceback: File "", line 16, in screenRefresh
java.lang.Exception: Query path ‘localfolder/namedquery1' not found in project 'ProjectB'.
Offending Script:
[Line15] sPathNamedQuery = ‘localfolder/namedquery1’
[Line16] oResult = system.db.runNamedQuery(sPathNamedQuery, {})