14 July 2019

Too many requests reached

What is the maximum number of API requests Microsoft Dynamics 365 Business Central can handle within a one minute? 

Ran into this question a couple of months ago, specifically soon after the April release. Most of our Azure Logic Apps integrations to Microsoft Dynamics 365 Business Central started to fail due to API endpoint changes

Logic Apps were kept on failing every time it tries to push the data into the MSDYN365BC. Initially, the error was related to URI.


1
2
3
4
5
6
{
    "error": {
        "code": "BadRequest_NotFound",
        "message": "The request URI is not valid. Since the segment 'customers' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource."
    }
}

After a while error message changed into "Too many requests reached".

1
2
3
4
5
6
7
{
  "error": {
    "code": "Application_TooManyRequests",
    "message": "Too many requests reached.  Actual (101).  Maximum (100)."

  }
}

So there is a limit! What is the limit and why there is a limit? To get an answer to all these questions we request support from Microsoft. While we wait for an answer from Microsoft we found the answer to our questions from Microsoft Docks: Business Central (Preview)

The document is related to the Business Central Connector and it specifically mentioned that Microsoft Dynamics 365 Business Central can ONLY handle 100 API calls per minute




The limit is enforced mainly to avoid DoS attacks (denial-of-service attack) and to make sure Microsoft Business Central runs smoothly. Too many API requests can bring the product to its knees causing a probable outage.

I suggest you read the "API Limits" article by Microsoft If you are working on the D365 integrations. Even though the article does not directly talk about BC, all the rules discuss it does apply to the BC as well.

Please provide your feedback with a comment. 
Thank you and Regards,
Tharanga Chandrasekara

No comments:

Post a Comment