Max limit for API query

Hi

I want to find out if the error I am getting is because my query to the /analytics end point is too large? And if so, is there a way to modify the maximum limit? Do I need to request this from the country’s IT team managing the DHIS2 system?

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"Query result set exceeds max limit: 100000"}
1 Like

Yes, I believe that this needs to be changed in the System Settings, see screenshot – you can check it out on play, too:

If the user you are using has the permissions then you can change this settings using the API, see docs Web API System Settings | Using the API - DHIS2 Documentation

2 Likes

Perfect, thank you!

1 Like

You’re welcome! (: