Study FAQ
How should a Dataverse integration handle throttling and decide when to retry a write?
Also asked as 2
- How can a Dataverse client retry 429 responses without blindly replaying an uncertain write?
- What should a Dataverse worker do after throttling, rejection or loss of a write response?
Answer
On a Dataverse service-protection rejection, wait at least the indicated Retry-After interval before retrying within a bounded budget. The Web API returns HTTP 429 with the delay in seconds. The .NET SDK exposes a TimeSpan with the same key in OrganizationServiceFault.ErrorDetails. Dataverse also considers cumulative execution time and concurrent requests, so pace all workers acting as the same principal. Dataverse service-protection limits
Use the service's recommended parallelism as input to a shared in-flight budget and confirm the limit with representative traffic. Compare completed work, latency and retry delay before changing concurrency. Check the installed client library's built-in retries before adding an independent retry loop, and retain a next eligible attempt time and an overall retry deadline. Dataverse bulk performance and parallelism
A validation or permission rejection calls for correction. After a lost write response, the outcome is uncertain. Resolve it using the original logical ID or recorded target state before repeating the operation. Keep the same stable key when a safe replay is supported, and review repeated notifications or other side effects independently. For a known accepted asynchronous operation, monitor the existing operation ID. Test an injected throttle and a lost success response separately, and inspect the durable records for early retries or duplicated effects. Dataverse Upsert behavior
Full explanation
AB-400: Reliable Dataverse Bulk and Background Operations
Study guide · AB-400
Read the full explanation