XDMP-EXPR occurs when the operands of an expression have incompatible types. For example, attempting to add a numeric value and a string, or when the actual type of an expression does not match a required expected type.
(: generates XDMP-EXPR :)
let $x = 1 + "abc" ...
XDMP-EXPR may also occur as the side-effect of another syntax or semantic error.
Response
Correct your code.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.