-16049   THE LEXICAL VALUE value IS NOT VALID FOR THE type-name DATA TYPE IN THE FUNCTION OR CAST. ERROR QNAME= err:FOCA0002

Explanation

A cast expression or function call includes a value that does not have the correct lexical form for the type-name data type.

System action

The XQuery expression cannot be processed.

Programmer response

Try one of the following actions:
  • If the error results from a function invocation, verify that the string parameters used for QNames or local names have the correct lexical form.
  • If the error results from a cast expression, verify that the source value is not one of the special float or double values NaN, INF, or -INF.

SQLSTATE

10602