The Dynamics 365 Web API throws the following error when I am trying to migrate multiple batches of records to the CRM:
Combined execution time of incoming requests exceeded limit of 1,200,000 milliseconds over time window of 300 seconds. Decrease number of concurrent requests or reduce the duration of requests and try again later.
I am using parallel for loop to migrate multiple batches of data to the CRM using the Web API. I need to have a high throughput as I need to migrate millions of records in a limited amount of time.
Is there a way to bypass this problem? Limiting the number of threads leads to the throughput taking a major hit. I need a solution so that I can migrate hundreds of batches at the same time (concurrently).
I am using Web API v9.1 of dynamics 365. I am using the parallel for loop and in each iteration, a chunk of data is picked up (let's say a batch size of 500) and that thread migrates those 500 records to the CRM. I want multiple threads of 500 records each to be migrated to the CRM.
I tried solving this by using multiple users (as the limit is only per user) but that solution was not accepted by the client.
Another solution was to reduce the number of concurrent threads. This led to reduced throughput.
I don't want to limit the number of threads. Is there a work-around for this problem?