Study FAQ
How do I checkpoint paged Dataverse change tracking without skipping updates?
Also asked as 2
- When should I save a new Dataverse change tracking token or delta link during synchronization?
- How can a Dataverse sync worker resume a paged change tracking interval safely?
Answer
Keep the previous Dataverse change tracking checkpoint until every page in the interval has been read and every required destination update or deletion has a durable outcome. This applies to the .NET SDK's final DataToken and to the Web API's final delta link. A paging cookie or continuation URL identifies progress within traversal. Dataverse change tracking
Check table eligibility and enable change tracking deliberately because it cannot be turned off afterward. With the .NET SDK, the reader needs organization-level read access on the table. Start RetrieveEntityChangesRequest with no DataVersion for the initial extraction. That initial read supplies existing records, without historical deletions. Use MoreRecords, PagingCookie and the next page number to finish enumeration, then persist the final DataToken only after applying the data. For the Web API, request Prefer: odata.track-changes, follow paging URLs and retain the returned opaque @odata.deltaLink. Change tracking requests do not support $filter, $orderby, $expand or $top. Dataverse change tracking for Web API and SDK
Bind the checkpoint to the source table, selected columns, target and mapping version. In a simple recovery design, restart from the previous committed token and replay safely. To resume mid-interval, durably save its original input token and staged page position together. Prevent a stale worker from replacing a newer checkpoint. Test a late-page failure and an interruption after a destination write. The next run should apply the incomplete interval without skipping changes. Dataverse change tracking constraints · Upsert and stable row identity
Full explanation
AB-400: Synchronizing Dataverse with Change Tracking and Upsert
Study guide · AB-400
Read the full explanation