-16085 THE TARGET NODE OF AN XQUERY expression-type EXPRESSION IS NOT VALID. ERROR QNAME=err:error-name.
Explanation
The target node of a basic updating expression is not valid.
- expression-type
- The type of expression.
- error-name
- An error identifier that indicates the reason why the expression
is not valid.
- XUTY0005
- The value of expression-type is "insert into", "insert as first into", or "insert as last into" and the target node of an insert expression is not a single element node or document node.
- XUTY0006
- The value of expression-type is "insert before" or "insert after" and the target node of an insert expression that specifies before or after is not a single element, text, processing-instruction, or comment node whose parent property is not empty.
- XUTY0007
- The value of expression-type is "delete" and the target expression does not return a sequence of zero or more nodes.
- XUTY0008
- The value of expression-type is "replace" or "replace value of" and the target node of a replace expression is not a single node or is a document node.
- XUTY0009
- The value of expression-type is "replace" and the parent property of the target node of a replace expression is empty.
- XUDY0020
- The value of expression-type is "delete" and the parent property of the target node of a delete expression is empty.
- XUTY0022
- The value of expression-type is "insert into", "insert as first into", or "insert as last into" the insertion sequence includes attribute nodes and the target node of an insert expression is a document node.
- XUDY0027
- The value of expression-type is "insert before", "insert after", "insert into", "insert as first into", "insert as last into", "replace", or "replace value of" and the target node is empty.
- XUDY0029
- The value of expression-type is "insert before" or "insert after" and the parent property of the target node of an insert expression is empty.
- XUDY0030
- The value of expression-type is "insert before" or "insert after", the insertion sequence includes attribute nodes, and the parent node of the target node is a document node.
System action
The XQuery expression cannot be processed.
Programmer response
Modify the expression to use a valid target node.
SQLSTATE
10703