Loading TOC...

XDMP-AS

W3C XQuery Standard Equivalent: err:XPTY0004

Message Text

Invalid coercion: variable1 as variable2

Cause

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