Oracle Error ORA-31038: Invalid string value: “string”

Oracle Error Message

ORA-31038: Invalid string value: “string”

Reason for the Error

The text in the XML document did not represent a valid value given the datatype and other constraints in the schema.

Solution

Ensure that the specified value in XML documents is valid with respect to the datatype and other constraints in the schema.