-16051 THE VALUE value OF DATA TYPE source-type IS OUT OF RANGE FOR AN IMPLICIT OR EXPLICIT CAST TO TARGET DATA TYPE target-type. ERROR QNAME = err:error-qname
Explanation
An XQuery expression requires that the value with a data type of source-type be cast, either implicitly or explicitly to the target data type target-type. The value is outside the defined range of values for that data type.
This error could be returned for a variety of error QNames such as FOAR0002, FOCA0001, or FOCA0003.
System action
The XQuery expression cannot be processed.
Programmer response
Change the XQuery expression to use a target data type with a range that supports the specific value, or change the value to be within the defined range of the target data type.
SQLSTATE
10602