Oracle Error ORA-19250: XQTY0030 – too many values to validate expression

Oracle Error Message

ORA-19250: XQTY0030 – too many values to validate expression

Reason for the Error

The argument of a validate expression returned more than one element or document node.

Solution

Fix the argument of the validate expression to return a single element or document node.