Loading TOC...

XDMP-EXTVAR

W3C XQuery Standard Equivalent: err:XPDY0002

Message Text

Undefined external variable variable1

Cause

The external global variable has not had a value assigned to it.

Response

Provide a value for the variable when calling xdmp:eval, xdmp:invoke etc. If you are not using these functions, then MarkLogic has no method to provide values for external variables - you should assign the global variable a value directly in the query.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.