Oracle Error Message
ORA-34647: (MXSQL18) The text expression in a CURSOR FOR TEXT declaration cannot be NA.
Reason for the Error
The text for the SELECT expression in a CURSOR FOR TEXT declaration was evaluated at compile time as NA.
Solution
Specify a text expression that is not NA at the time the program containing the SQL DECLARE is compiled.