Oops. I'm working through a jump server onto a machine with no Internet connection and no clipboard cut'n'paste. I used OCR to convert a screengrab for my post. It has randomised the types of backticks and I didn't notice. In the error message there are only standard apostrophes. I'll fix up my original post.
Thanks for the eyes!
I think that is correct as long as the parameter in the named query is expecting a timestamp not a string. When errors print to logs they assert .toString() from memory.
Hmm!
The named query (Query type: Update query) is expecting Edit_date / DateTime parameter.
The MS SQL database column is datetime2 which should handle it.
I think I found the problem. I've fallen victim to the project name syntax trap. results = system.db.runNamedQuery("PROJECTNAME", "test",parameters=parameters)
Phil has commented on this in several posts and pointed out that it is odd in that the projected name should be after the named query and parameters rather than first in the list.
I was using the gateway scope syntax. I've removed the project name from the function and it seems to work. It's midnight here. Time for sleep. I'll continue debugging tomorrow.
Thank you very much for taking the time to try it out.