variable1 is invalid: variable2
XDMP-ARG-DETAIL is usually thrown by API functions receiving invalid parameter values.
XDMP-ARG-DETAIL
Correct your code.
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.