XDMP-AS indicates a mismatch between the actual type (variable1) and expected type (variable2) of an expression. For example, using an empty sequence when a node is expected. The message usually includes context information about the expression where the error occurred.
XDMP-AS 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.