Undefined aggregate function variable1
You have used an aggregate function name that does not exist.
Examine your code for typos, or ensure that the requisite aggregate is defined.
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.