Dataverse 429 errors in data migrations: service protection limits explained

The migration ran fine in test. Then on cutover night it started throwing 429 Too Many Requests, the job slowed to a crawl, and the window started to look tight. That's Dataverse service protection limits, and they're predictable once you know what they count.

What Dataverse is actually limiting

Service protection limits are worked out per user, per web server, over a sliding five-minute window. Three things are counted. Microsoft's current defaults per web server:

  • Number of requests: 6,000 in five minutes.
  • Execution time: 20 minutes of combined server time in five minutes.
  • Concurrent requests: 52 or more at once.

Go over one and you get a 429 from the Web API (or an OrganizationServiceFault from the .NET SDK) with a Retry-After value telling you how long to wait. Keep pushing and the wait gets longer.

Microsoft says these numbers can change and vary by environment, so treat them as a rough guide, not a target.

Why it was fine in test

A few reasons, usually more than one at once:

  • Volume. Test got a sample. Production gets every row, so the job runs long enough to actually hit a five-minute window at full speed.
  • Plugins and real-time workflows. Requests made by plugins don't count towards your request limit, but the time they take is added to the request that triggered them. A create that takes 50 ms in a clean environment can take a second in production once the sync plugins on that table run. That burns the execution time limit fast.
  • Everything runs as one account. Limits are per user. A migration tool, an integration and a Power Automate flow all using the same application user share one allowance.
  • Different environment size. The number of web servers isn't the same everywhere. Trial environments get one. Don't assume test and production behave the same.

What I change before a big load

  1. Retry properly, using Retry-After. If you use ServiceClient (or the older CrmServiceClient), it already waits and resends. If you call the Web API yourself, read the Retry-After header and wait that long. Don't retry straight away, and don't log the error and move on to the next row.
  2. Parallel requests, not giant batches. Microsoft's own guidance: most loads are fastest with single requests sent in parallel. If you batch, start around 10 per batch, not 1,000. Big batches just move you from the request limit onto the execution time limit.
  3. Ramp up, don't guess. Start with a few threads and increase until you see the first 429s. Then let Retry-After set the pace. Keep parallelism under the concurrency limit.
  4. Use CreateMultiple and UpdateMultiple. For standard and elastic tables these are usually much quicker than the same number of single creates, and plugins written for them run once per batch instead of once per row.
  5. Look hard at what fires on every row. Sync plugins, real-time workflows, flows on create. Some should be off during the load and run afterwards in a catch-up job. Some can be skipped per request with the BypassBusinessLogicExecution parameter, if the migration account has the bypass privilege and you've agreed what's being skipped. Flows have their own separate bypass option. Write those decisions down, and plan how the skipped logic gets applied afterwards.
  6. Split the work across accounts if you need to. Separate application users for the migration and the live integrations, so one doesn't starve the other. This isn't a way around the limits, it just stops a cutover breaking the integration that's still running.
  7. Rehearse at full size. One full-volume dry run in an environment like production tells you the real run time. A sample run tells you very little.

Service protection limits aren't the same thing as your daily request entitlements (the Power Platform request limits tied to licences). Batching doesn't save you anything on entitlements, every operation inside the batch still counts.

Signs you're about to hit it

  • Throughput drops off after the first few minutes of a run, then comes in bursts.
  • Error rows mentioning "Number of requests exceeded the limit", "Combined execution time" or "Number of concurrent requests".
  • Users or an integration complaining while the load is running, because they share the same account.

When it's more than a migration problem

If a nightly sync or a weekly batch keeps hitting these limits in normal running, the load is telling you something about the design. Microsoft's suggestion is to move big periodic jobs towards near real-time integration where you can. I go through how I decide where integration logic should live on the Dynamics 365 integrations page.

Slow sync plugins make every one of these limits worse. If you haven't checked filtering attributes on your Update steps, start with plugin filtering attributes. Plugins, integrations and data loads are all part of a Dynamics 365 health check.

Microsoft's documentation

Migration or cutover coming up?

Book 20 minutes. Tell me the volumes and the window and I'll tell you where I think it'll get stuck.

Book a 20-min call