Loading TOC...

XDMP-EXPR

W3C XQuery Standard Equivalent: err:XPTY0004

Message Text

Invalid expression

Cause

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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.