Oracle Error ORA-19160: XPST0003 – syntax error: invalid variable name string

Oracle Error Message

ORA-19160: XPST0003 – syntax error: invalid variable name string

Reason for the Error

The given XQuery variable does not begin with the ‘$’ sign

Solution

Fix the variable name to start with the “$” sign.