ProjectNotFoundException: project not found: queryInsertRow
queryInsertRow is a named query in the project and it operates correctly in named query testing.
Why is the runNamedQuery looking for the project name?
You must be running it in the gateway. The named query api was misdesigned to not default to its own project when in project scope in the gateway. And the order of parameters established at that time prevents fixing it. ):
All of the other system.db functions take a datasource argument that is optional in any project context, including gateway project contexts.
Thank you again for your friendly and excellent assistance.
system.project.getProjectName() does exactly that.
I’m using the MySQL JDBC driver and type(newRowId) showed me that it’s just an int.
I’ve learned quite a bit with your assistance and it’s coming together in my head. I’m actually teaching this stuff in work! “In the valley of the blind the one-eyed man is king.”