In the StateFlow script include, there are errors in the validateMandatory, fireEvents, and addWorkNotes functions. In each of these functions, a query is run with the following limit added:
This is in fact supposed to use the passed in tableName parameter:
gr.addQuery("table", tableName); - or for fireEvents and addWorkNotes
Update the StateFlow script include in those 3 functions.
In many other places in this file, we use current.table. This is correct everywhere else - do not change it.
Related Problem: PRB613555