-16009 AN XQUERY FUNCTION NAMED function-name WITH number-of-parms PARAMETERS IS NOT DEFINED IN THE STATIC CONTEXT. ERROR QNAME= err:XPST0017
Explanation
In a call to the function function-name, the expanded QName and number-of-parms do not match the function name and number of parameters of a function signature in the static context.
System action
The XQuery expression cannot be processed.
Programmer response
Try one of the following actions:
- Verify that you are passing the correct number of parameters to the function call.
- If the function call uses a function name with no prefix, verify that the local name of the function matches a function that is in the default function namespace, or use the correct prefix.
SQLSTATE
10506