ORA-17131
Query timeout invalid state.
Cause
The error occurs when attempting to set a query timeout on a statement, but the specified timeout value or the state of the query does not allow for a query timeout to be set.
Action
Verify that the statement is in a state where setting a query timeout is appropriate.