ORA-19206
From Oracle FAQ
⧼orafaq-jumptonavigation⧽⧼orafaq-jumptosearch⧽
ORA-19206: Invalid value for query or REF CURSOR parameter
What causes this error?
The queryString argument passed to DBMS_XMLGEN.newContext was not a valid query, or REF CURSOR.
How to fix it
Rewrite the query so that the queryString argument is a valid query or REF CURSOR or get programmer to fix the code.