XDMP-ARG-REQUESTLIMITSMAP is usually thrown by API functions receiving invalid parameter values. For example, 1. Keys and/or values are not of correct type. 2. There are duplicate in values of the map.
Response
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.