Invalid depth (should be "0" or "infinity")
An invalid value was supplied for depth to a locking function such as xdmp:lock-acquire. The only values allowed are "0" and "infinity".
Correct your code. For more information, see the Overview of Locks in the Application Developer's Guide.
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.