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: 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.