Script Console - Named Query

I'm stumped on why it's giving me the error highlighted....The Named Query works fine when execute in
the Nested Query Test window, now trying by calling in script and it's failing

more of the error

You’re not providing the correct value types to the params.

I assume those strings are intended to be tag paths. You need to read in the tag values and then provide the actual values as the params.

As @lrose notes, putting a tagpath in a string doesn't magically cause that tag to be read. In jython, it is still just a string. Use system.tag.readBlocking() to obtain all of those tag values, then construct the params dictionary.

1 Like

Thanks, I already tried it and worked....both correct.