Loading TOC...

XDMP-ARGTYPE

W3C XQuery Standard Equivalent: err:XPTY0004

Message Text

variable1 is not of type variable2

Cause

XDMP-ARGTYPE indicates a mismatch between the actual type (variable1) and expected type (variable2) of a function call argument. For example, passing an empty sequence when a node is expected. The message usually includes context information about the expression where the error occurred.

XDMP-ARGTYPE 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.