-16003 AN EXPRESSION OF DATA TYPE value-type CANNOT BE USED WHEN THE DATA TYPE expected-type IS EXPECTED IN THE CONTEXT. ERROR QNAME= err:XPTY0004
Explanation
An XQuery expression includes a value of the type value-type in
a context where the expected type is expected-type.
The following situations might cause this error:
- For a constructor function of an XML Schema atomic type, atomization to its argument must not result in more than one atomic value.
- The cast of a value of value-type to target expected-type must be a supported cast.
System action
The XQuery expression cannot be processed.
Programmer response
Specify a value of the correct type.
SQLSTATE
10507