Most migration stories end with "and then we flipped the switch." Ours started there. The migration package had already moved the core tables from an on-premises Dynamics CRM 2016 into Dynamics 365 Customer Service. Our job over the go-live weekend was to make sure the data people would open on Monday morning was actually complete, correct and trustworthy.
Here is what that looked like, and what we learned.
Before touching anything, we compared every one of the few hundred CRM tables with Dynamics 365: record counts first, then field by field on samples, and always as counts only. No record values were exported to disk.
That first comparison changed the plan. Some gaps were obvious (notes and many emails were simply not there). Others were subtle: emails loaded as drafts with no sender or recipients, activities sitting Open although they were completed years ago, SharePoint document links that existed but pointed nowhere, and owners set to a default account.
One lesson came early: our own counting tool was wrong once. FetchXML's count treats empty strings as filled, so a "big gap" in two contact fields turned out to be mostly empty text in the old system.
Measure, then verify the measurement.
We built small, single-purpose loaders in Python against the CRM SOAP endpoint (ADFS sign-in) and the Dataverse Web API:
Every loader followed the same rules:
On Saturday, while fixing activity statuses, a dependency plug-in started generating tasks and letters and changing case data. The bypass header we relied on covers create and update, but not status changes (SetState).
We stopped within minutes and turned off the plug-in steps involved. We then deleted the tens of thousands of generated records with a script that double-checked each one (created by our account, after a set time, not an original record), restored the affected case fields from the source, and re-closed the cases with their original resolution.
Since then, every bulk operation starts with the same check: what fires on this table for this message, including status changes? It cost us a few hours. It would have cost far more on Monday.
Changing a case owner in Dynamics cascades to its child records by default, which would have overwritten the owners we had just restored on emails, notes and activities. Our owner tool snapshots the cascade settings, turns them off, changes the owners, and always restores them, including on error. It then re-reads the settings and compares them against the snapshot until they match.
During a sandbox test, a metadata call hung for hours mid-restore. Nothing broke in production, but it led to two rules: every metadata call gets a timeout and a retry, and every restore is verified by reading the configuration back, not assumed.
The business needed Created On and Modified On to match the old system, and Dynamics 365 doesn't let you write either. We built a small migration-only plug-in that sets the original dates when our tool updates a record, ran it across the key tables, and removed it afterward. The remaining records are scheduled for a quiet window after go-live.
Every step ended with a check against the source: a dry run that should find nothing left to fix, random samples compared field by field, and a look for side effects after each production change. The final spot-check still found a few things to finish after go-live, and they're now scheduled tasks with clear owners rather than surprises.
What we'd pass on:
Go-live is not the end of a migration. It is the moment the data starts being used. Our goal for the weekend was simple: when people logged in on Monday, they would find their history where they expected it, with the right dates, statuses, owners and documents, and a short, honest list of what is still being finished.