Study FAQ
How do I choose between Dataverse bulk operations, batching and an atomic transaction?
Also asked as 2
- Which Dataverse operation fits independent bulk writes versus changes that must succeed together?
- How do I pick a Dataverse write method based on table support and rollback requirements?
Answer
Start with the failure unit. Use a supported bulk message for many rows of the same table, ExecuteMultiple or a Web API $batch for grouping individual requests, and an explicit ExecuteTransaction request or Web API change set when supported changes must commit together. The outer $batch request alone does not establish a transaction. Bulk operation messages · ExecuteMultiple · ExecuteTransaction · Web API batch and change sets
For standard tables, check support for CreateMultiple and UpdateMultiple. Support for both implies UpsertMultiple. A standard-table bulk error fails the entire operation. Elastic tables support those three messages and DeleteMultiple, can return individual bulk failures, and have no multi-record transactions. A synchronous PostOperation fault on an elastic-table Create does not reverse that created row. Reserve bulk operations for external clients. Bulk message availability and error handling · Elastic table behavior
Use a fixture with valid inputs and one invalid input. Compare persisted rows and outcomes with the selected failure unit. Keep a stable identity per row so the application can handle partial failures without retrying a successful subset indiscriminately. For a business operation that needs atomicity across rows, verify that the chosen mechanism rolls back each participating write when one fails.
Full explanation
AB-400: Reliable Dataverse Bulk and Background Operations
Study guide · AB-400
Read the full explanation