Recently we got the below error “Forbidden” for one of our flows that was using the Dataverse connection.
After some analysis, we found the root cause of the error.
The Dataverse connection reference was created using the Service Principal but it was not added as an Application User (with appropriate security role) in that environment.
Adding the corresponding Application User used for the Dataverse connection fixed the issue for us.
Let us fetch 5000 contact records using List Rows, and then update it using Apply To Each.
It took around – 37 minutes
Now let us enable concurrencycontrol for Apply To Each action, and let it run under 20 (default) degree of parallelism.
This time it took around 4 minutes.
Let us increase it to the maximum this time, i.e. 50.
This time it took around 2:45 minutes.
Thus Concurrency Control option can help in processing records faster by processing records in parallel instead of one by one by using parallel threads. However, if the ordering of the way records need to be processed is critical, then we need to be careful before using it and also at times it can cause the API’s request limit to be hit.
We might below error in our flow – BadRequest. Http request failed as there is an error: ‘Cannot write more bytes to the buffer than the configured maximum buffer size: 104857600.’.