Oracle Error ORA-31012: Given XPATH expression not supported

Oracle Error Message

ORA-31012: Given XPATH expression not supported

Reason for the Error

XPATH expression passed to the function is currently unsupported.

Solution

Check the xpath expression and change it to use a supported expression.