How to Verify a Data Migration: Post-Run Reconciliation Guide
A migration summary is not proof. Reconcile in three layers—record counts, hard-case sampling, and the fields migrations lose most—before you switch off the old system.
Planning a migration?
Get a free 30-min call with our engineers. We'll review your setup and map out a custom migration plan — no obligation.
Schedule a free call- 1,500+ migrations completed
- Zero downtime guaranteed
- Transparent, fixed pricing
- Project success responsibility
- Post-migration support included
Self-serve? Start with ClonePartner Express, free sample first
How to Verify a Data Migration: Post-Run Reconciliation Guide
A summary email from whoever ran your migration—an AI agent, a script, a vendor tool, or an internal team—is not proof the data is right. Before you switch off the old system, reconcile the full run in three layers: record counts per object, record-by-record comparison of a deliberately hard sample, and targeted checks on the fields migrations lose most often—created and updated dates, authors and owners, public versus internal notes, attachments, and links between records.
This guide covers the full production run, after it finishes. If you are still at the sample-migration stage, start with our test migration checklist instead.
What is data reconciliation after a migration?
Data reconciliation is the post-migration comparison of source and destination systems to confirm that every record arrived, that fields match, and that relationships between records survived. It answers a different question than validation: validation asks "is the data well-formed?" while reconciliation asks "does the destination match the source?"
The word evidence matters. A status message tells you a process ended. It does not tell you whether archived records were omitted, system timestamps were replaced, private notes became public, or attachments failed on a subset of records. An auditor—or your own ops lead—needs record counts per object, rejected records with reasons, field-level spot checks, and a formal sign-off. A chat transcript or pipeline log ending in "migration complete" does not meet that bar.
Layer 1: How to pull record counts from both systems
Record-count parity is the fastest sanity check. If the source has 42,318 tickets and the destination has 41,900, 418 records were dropped. Run counts per object type—tickets, contacts, organizations, articles, attachments—not just a single total.
Three rules keep count checks honest:
- Count by object, not only grand total.
- Count with a credential that can see the entire dataset, including archived, soft-deleted, and inactive records.
- Count the same scope on both sides. The formula is
Source Total − Approved Exclusions = Destination Total. If the destination total is lower, records were dropped. If it is higher, the migration engine created duplicates during a retry.
Platform-specific count methods
Each platform has quirks in how it reports counts. Using the wrong endpoint gives you a number you cannot trust.
Zendesk exposes GET /api/v2/tickets/count, but the docs are clear: it returns an approximate count, and once the count passes 100,000 it is updated only every 24 hours. The standard GET /api/v2/tickets endpoint excludes archived tickets entirely. (developer.zendesk.com) For reconciliation, use the Search API count endpoint:
curl "https://{subdomain}.zendesk.com/api/v2/search/count" \
-G --data-urlencode "query=type:ticket" \
-H "Authorization: Bearer {access_token}"Zendesk says the count property shows the actual number of results. Search itself returns at most 1,000 results per query, but the count still reports the full total. To pull more than 1,000 records, Zendesk points you to the Export Search Results endpoint or the Incremental Export endpoints. (developer.zendesk.com)
Note on timing: Zendesk says it can take up to a few minutes for new tickets and users to be indexed for search. If you run this query the moment the migration completes, the count can come back low. Wait a few minutes and run it again before you treat the number as final.
Salesforce's REST resource /services/data/vXX.X/limits/recordCount returns a cached snapshot that is updated at variable intervals. It excludes records in the Recycle Bin and archived records. For an accurate count, Salesforce points you to SOQL: (developer.salesforce.com)
SELECT COUNT() FROM Case
SELECT COUNT() FROM Contact
SELECT COUNT() FROM AccountSOQL counts only the records visible to the user running the query, so run it as a user who can see all data. To include records in the Recycle Bin, send the same query to the queryAll resource (/services/data/vXX.X/queryAll?q=...) instead of query. (developer.salesforce.com)
HubSpot has no dedicated count endpoint. The CRM search endpoint (POST /crm/v3/objects/{objectType}/search) returns a total property, but a single query can page through at most 10,000 results, and search never returns archived records. Newly created or updated records can take a few moments to appear in search. (developers.hubspot.com) For large objects, split the search into non-overlapping date ranges and cross-check the total against an export. Count archived records separately through the list endpoint with archived=true.
Freshdesk's List All Tickets endpoint returns only tickets created in the past 30 days unless you pass updated_since, and its paging is capped at 300 pages. The Filter Tickets endpoint (GET /api/v2/search/tickets?query=...) returns a total field for a query such as a created_at range, but it excludes archived tickets. (developers.freshdesk.com)
Intercom's Search Conversations endpoint (POST /conversations/search) returns a total_count for the matching conversations. (developers.intercom.com) The older /counts endpoint appears only in the reference for earlier API versions, so do not rely on it for a current workspace.
Jira Cloud removed the old /rest/api/3/search endpoint, which returned startAt and total. Its replacement, /rest/api/3/search/jql, pages with a nextPageToken. The POST /rest/api/3/search/approximate-count endpoint returns only an estimate, and recent updates might not show in it yet. (developer.atlassian.com) For an exact count, page through a bounded JQL query to the end and count the issues yourself.
Every count API above has limitations: caching, pagination caps, search indexing delay, or recency filters. Always cross-check at least one object type with a manual export or admin dashboard total. Where the vendor documents an indexing delay, wait and re-run the count before you treat it as final.
What to record
Build a comparison table before you move on:
| Object type | Source count | Destination count | Delta | Status |
|---|---|---|---|---|
| Tickets | 42,318 | 42,318 | 0 | ✅ Pass |
| Contacts | 11,204 | 11,201 | -3 | ❌ Investigate |
| Organizations | 847 | 847 | 0 | ✅ Pass |
| Articles | 312 | 310 | -2 | ❌ Investigate |
| Attachments | 8,491 | 8,310 | -181 | ❌ Investigate |
A zero delta does not mean every record is correct—it means nothing was dropped or duplicated at the object level. Fields could still be wrong, which is what Layer 2 catches.
Break the count report down further for risky slices: records with attachments, records with internal notes, records owned by inactive users, parent records versus child records, and any archived or deleted population that was supposed to move.
Records that should NOT have migrated. Count reconciliation has an inverse problem: records that should have been excluded—spam, test tickets, GDPR-deleted records, or sandbox data—but were migrated anyway. If your approved exclusion list is documented in your data migration playbook, run a spot query against the destination for records matching those criteria. A migration that moved 100 extra records is as wrong as one that dropped 100.
Layer 2: How to choose a sample that finds real problems
Sampling easy records proves nothing. A sample of 50 recent, clean, single-comment tickets will pass even when the migration broke 2,000 older records. Pick a sample that is biased toward the hard cases: long threads, heavy attachments, archived or merged records, deactivated owners, the oldest records, linked records, every custom field type, mixed public and internal notes, and non-ASCII content. Our test migration checklist lists the selection criteria in detail. Reuse the same criteria here, but draw fresh records from the full run.
A post-run sample differs from the pilot in four ways:
- It covers the whole run, not 100 hand-picked records. Aim for about 100 records per major object, and stratify by time range so that every year of history is in the sample.
- It includes records the pilot never saw. Records created after the pilot ran, records from objects or custom fields added late, and records loaded by a retry or a resumed batch.
- It samples the rejects file. If the migration tool or vendor produced one, the exceptions show where the full run was already under stress.
- It grows when something fails. If any record in the first pass shows a timestamp, author, visibility, or attachment failure, widen the sample for that object before you decide whether the failure is systemic.
For each major object, review records from more than one lifecycle state. Compare what the user sees in the UI, then compare the raw exported fields underneath. The screen can look plausible while hidden metadata is wrong.
Which fields are easiest to lose in a migration?
Even when record counts match, specific fields can be silently wrong. The areas below fail often, and many share one root cause: the generic create path is not the same as the historical import path.
1. Created and updated dates
Most platforms treat created_at and updated_at as system fields. If the migration used a standard create endpoint instead of an import-specific one, every record shows the migration date instead of the original date. This breaks SLA reports, aging dashboards, and first-contact metrics.
In Zendesk, the Ticket Import API (POST /api/v2/imports/tickets) is the path that lets you set a ticket's created_at, updated_at, and solved_at, and each comment's created_at. (developer.zendesk.com) In Salesforce, an admin must enable "Set Audit Fields upon Record Creation" in the org's User Interface settings and grant it to the integration user. Audit fields such as CreatedDate can then be set when the record is created, on supported objects, and SystemModstamp can never be set. (developer.salesforce.com) On any platform, check which import path can set the original create date before the run, not after.
To verify: check the metadata of a five-year-old record. If its created_at shows the migration date, the entire run used the wrong endpoint and all timestamps across all records are wrong. This is a systemic blocker.
2. Authors and owners
Without the right endpoint and permissions, the author, created_by, or requester field collapses onto the API user that ran the migration. You end up with 40,000 tickets all "submitted by" a service account.
Verify that deactivated source users were mapped correctly. Systems often require you to provision placeholder accounts in the destination, or map orphaned records to a designated "System Archive" user. The field-level check: pick five records owned by five different source users, including at least one deactivated user, and confirm the destination shows the correct mapped identity—not the service account.
3. Public versus internal notes
Help desk platforms distinguish between customer-visible comments and internal agent notes. In Zendesk, each ticket comment has a public boolean: true for a public comment, false for an internal note. Agents can turn a public comment private with PUT /api/v2/tickets/{ticket_id}/comments/{ticket_comment_id}/make_private. (developer.zendesk.com)
A mapping error here is a data exposure incident, not merely a data quality issue. If an internal note is migrated as a public reply, the customer may receive an email notification containing internal commentary as soon as the destination system's triggers fire. This can constitute a breach of confidentiality depending on the content. Verify the boolean flags on a sample of tickets that contain both note types before re-enabling destination automations.
4. Attachments and expiring URLs
Attachments are rarely passed as raw files in an API payload—they are passed as URLs. If the migration tool simply copies the URL from the source to the destination, the link will break as soon as the source system is decommissioned.
Many platforms serve files through expiring, signed URLs. An Amazon S3 presigned URL created with the AWS CLI or SDKs, for example, can be valid for at most 7 days, and it expires sooner if the credentials that signed it expire. (docs.aws.amazon.com) If the migration engine extracts a signed URL but waits too long to download the file, the URL returns a 403 and the attachment is lost—even though the attachment record still exists on the migrated ticket. The attachment record count can show zero delta while the files themselves are unreachable.
Non-ASCII filenames add a second failure mode: a file named Résumé.pdf may be stored as R%C3%A9sum%C3%A9.pdf in one system and decoded differently in another, producing a file that exists but cannot be opened.
Do not just check that an attachment record exists. Fetch the URL and confirm it returns a 200 with a non-zero Content-Length. Open a migrated record and inspect the network request—the file must be hosted on the destination system's domain, not the source's. For non-ASCII filenames, download the file and confirm it opens correctly.
5. Links between records
Relational integrity requires a strict parent-before-child load order. You cannot attach a ticket to a contact if the contact does not exist yet. If a parent did not exist when its child loaded, the child can still be created with the link missing, so a record can exist while the graph is broken.
Verify that the migration engine maintained a persistent source-to-destination ID map. Check that a sample company correctly displays all of its associated contacts, and that those contacts display all of their historical tickets. If records are floating unassigned, the relational links were dropped.
6. Schema drift: custom fields missing in the destination
A common silent failure: a custom field (dropdown, multi-select, or date field) exists in the source but was never created in the destination before the migration ran. The migration engine receives the value, has nowhere to put it, and either drops it silently or logs it in a rejects file without alerting the operator.
To detect schema drift before Layer 2 sampling: export the full custom field schema from both systems and diff them. Any field present in source but absent in destination is a gap. Any dropdown field in destination that is missing picklist options from source means those option values will be rejected on import. Create all destination schema elements before the migration runs; if they were missed, patch the schema and re-import the affected records.
7. Encoding and character set issues
Migrations that pass through multiple systems—extract from API A, transform in a script, load to API B—introduce encoding conversion steps where non-ASCII characters can corrupt. The failure modes:
- UTF-8 to Latin-1 and back: Characters above U+00FF become
?or mojibake (éinstead ofé). - BOM insertion: Some export formats prepend a byte-order mark that renders as
at the start of a field. - HTML entity encoding:
&left as a literal string instead of being decoded to&, or vice versa. - Emoji and supplementary Unicode: Characters outside the Basic Multilingual Plane (U+10000 and above, including emoji) fail in databases or APIs that only support 3-byte UTF-8 (
utf8in MySQL rather thanutf8mb4).
To verify: include at least five records with non-ASCII content in your Layer 2 sample—subject lines, body text, and attachment filenames. Check the raw API response, not just the UI rendering, since UIs often normalize display while the stored value is corrupt.
How to verify delta sync after migration
Item 15 on the sign-off checklist covers the delta sync, but the verification method is distinct from the full migration reconciliation.
During any migration window of meaningful length (more than a few hours), the source system continues receiving new and updated records. The migration's final step is a delta sync: re-importing everything that changed since the initial run started. Without it, you go live missing records created or updated during the migration window.
How to scope the delta:
- Record the exact UTC timestamp when the full migration run started (call it
T_start). - Query the source for all records with
updated_at >= T_start. This is your delta set. - Run those records through the migration pipeline again.
- Verify the delta set landed in the destination by querying destination records with
source_updated_at >= T_startand comparing counts.
Conflict handling: If a record was migrated in the full run and then updated in the source during the window, the delta sync must overwrite the destination version. Confirm the migration engine uses UPSERT semantics (match on external ID, update if exists, insert if not) rather than INSERT-only. INSERT-only on the delta will create duplicates for any record that was both migrated and subsequently updated.
Post-delta recount: After the delta sync completes, re-run your Layer 1 count queries. The source count at T_start + window should equal the destination count. Any remaining delta indicates records that changed after the delta sync ran—acceptable if the cutover was immediate, worth investigating if the gap is hours old.
How to compare fields programmatically
Manual spot-checking is error-prone and does not scale. For each record in your sample, pull the full record from both source and destination APIs and compare field by field.
The pattern: export normalized data from both sides keyed by a stable identifier (external ID, preserved source ID, or migration map). Normalize timestamps to UTC, collapse blank and null consistently, sort multivalue lists before comparing, and strip formatting noise you have already decided is acceptable.
import csv
from datetime import datetime, timezone
KEY = "external_id"
FIELDS = [
"created_at", "updated_at", "subject", "status",
"author_id", "owner_id", "note_public", "attachment_count",
]
def norm(value):
"""Normalize a field value for comparison."""
value = (value or "").strip()
if not value:
return ""
try:
dt = datetime.fromisoformat(value.replace("Z", "+00:00"))
return dt.astimezone(timezone.utc).isoformat().replace("+00:00", "Z")
except ValueError:
return value
def load_rows(path):
with open(path, newline="", encoding="utf-8") as f:
return {row[KEY]: row for row in csv.DictReader(f)}
source = load_rows("source.csv")
target = load_rows("target.csv")
with open("mismatches.csv", "w", newline="", encoding="utf-8") as out:
writer = csv.DictWriter(out, fieldnames=[
"key", "field", "source_value", "target_value", "severity"
])
writer.writeheader()
for key, srow in source.items():
trow = target.get(key)
if not trow:
writer.writerow({
"key": key, "field": "__missing_target__",
"source_value": "present", "target_value": "",
"severity": "blocker",
})
continue
for field in FIELDS:
sval = norm(srow.get(field))
tval = norm(trow.get(field))
if sval != tval:
writer.writerow({
"key": key, "field": field,
"source_value": sval, "target_value": tval,
"severity": "review",
})This script is deliberately short. The important part is the shape: compare normalized exports on a stable key and write every mismatch to a log. Extend it with:
- Relationship-set checks (does the destination contact have the same number of associated tickets as the source?)
- Attachment hash or file-size comparison (download both files and compare
Content-Lengthor MD5) - Enum mapping rules (source value
"open"maps to destination value"active"—treat these as equivalent) - Expected transformations (HTML sanitization in the destination is acceptable; flag it as informational, not a blocker)
- Encoding checks (compare
len(source_value.encode('utf-8'))tolen(target_value.encode('utf-8'))to catch mojibake that looks similar but is not identical)
For cross-platform moves (e.g., Zendesk to Freshdesk), field names differ—requester_id might map to requester_id but with different ID namespaces, so compare mapped values, not raw IDs.
If your target platform has eventual-consistency behavior or delayed search indexing, wait for the load to settle before you treat the result as final.
What should a mismatch log record?
A mismatch log is the line-by-line evidence of every difference that still needs a decision. Use the same log you kept for the sample run: source and destination IDs, field, both values, severity, root cause, and the action taken. The test migration checklist has a CSV template. For the full run, add two columns:
- Scope: how many records in the full run share this mismatch, not only how many sampled records show it
- Proposed action: patch, rerun object, rerun entire migration, or accept
Make it one row per mismatch, not one row per record. A single record can have three acceptable differences and one blocker—you want the blocker to stand on its own.
Group mismatches by field. If created_at is wrong on every record in your sample, the migration used the wrong endpoint. That is a systemic issue, not a one-off, and it usually means a re-run. If a single custom field is wrong on 12 records but correct on 200 others, that is a patchable edge case.
Which mismatches block sign-off?
Block sign-off when the mismatch changes history, visibility, completeness, or relationships. The general rule: if fixing it after cutover requires touching every record, or if the data is unrecoverable once the source goes offline, it blocks sign-off.
| Mismatch type | Severity | Why |
|---|---|---|
| Missing or duplicate records | Blocker | Count parity is broken; missing records may be unrecoverable after source decommission |
created_at / updated_at wrong on all records |
Blocker | Systemic; breaks reporting; most platforms cannot patch system timestamps after creation |
| Author/owner collapsed to service account | Blocker | Systemic; every record shows a service account; requires re-run |
| Internal notes exposed as public (or vice versa) | Blocker | Customer-facing data integrity and potential confidentiality breach |
| Attachments returning 403/404 | Blocker | Files are unrecoverable once source signed URLs expire |
| Broken parent-child or cross-object links | Blocker | Re-linking after cutover is expensive; new live records will interleave |
| Custom field absent in destination schema (schema drift) | Blocker | Values cannot be stored; either patched before re-import or data is permanently lost |
| Records that should have been excluded were migrated (GDPR-deleted, test data) | Blocker | Compliance and data integrity risk; must be purged from destination |
| Encoding corruption in body text or subject | Blocker | Cannot be corrected without re-import from source; worsens over time if data is copied further |
| A handful of custom field values missing | Warning | Patchable via API after cutover if the values are known |
| Tag case differences ("billing" vs "Billing") | Warning | Fixable in bulk after cutover |
| Minor HTML or whitespace differences in rich text | Informational | Often caused by HTML sanitization in the destination |
| Destination-computed counters or derived fields | Informational | Accept if the destination is expected to recompute them |
When in doubt, ask: would a user, auditor, or downstream integration make a different decision because of this mismatch? If yes, it blocks sign-off.
When to re-run instead of patching
Re-run when the defect is systematic—meaning it affects the majority of records rather than a handful of edge cases. Common triggers:
- The migration used the wrong API endpoint (standard create instead of import), and all timestamps or authors are wrong.
- A parent-before-child load ordering error broke all relationships of a specific type.
- A rate-limit backoff failure caused a batch of records to silently drop.
- The public/private note flag is reversed across all comments.
- Schema drift: a custom field or picklist option was missing in the destination and values were silently dropped at scale.
- Encoding was set incorrectly at the pipeline level, corrupting all non-ASCII content.
Patch after cutover only when the issue is narrow, low-risk, and repeatable: a known enum mapping on a dozen records, a missing optional field, or a formatting difference that does not affect readability.
Once users are working in the destination, a re-run becomes much harder. New live records mix with migrated ones, IDs have been issued, automations have fired, and emails may have gone out. The cost is not the migration itself—it is the engineering time to find the bad records, delete or patch them without touching live work, re-import, re-link, and re-check. This is why reconciliation happens before cutover, not after.
If the source system is still live, keep it on, fix the logic, rerun the affected scope, and complete the delta sync before cutover. If the run is already messy and users are about to go live, stop and use a proper triage path. Our engineer's rescue guide for failed migrations covers the next steps.
Sign-off checklist
The person signing off should be able to answer "yes" to every row before the old system is turned off:
| # | Check | Method | Pass? |
|---|---|---|---|
| 1 | Record counts match per object type | API count queries on both systems (after indexing lag) | ☐ |
| 2 | Counts also match for risky slices (archived, attachments, internal notes, child objects) | Segmented count queries | ☐ |
| 3 | Records that should have been excluded are absent from destination | Query destination for excluded criteria (spam, test, GDPR-deleted) | ☐ |
| 4 | Sample of hard-case records compared field by field (see Layer 2) | Scripted comparison against both APIs | ☐ |
| 5 | created_at and updated_at preserved on sample records |
Field comparison; five-year-old record check | ☐ |
| 6 | Authors/owners are original users, not service account | Field comparison on records from 5+ different source users | ☐ |
| 7 | Public vs. internal note visibility is correct | Manual spot check on 10+ tickets with both note types | ☐ |
| 8 | Attachments load (HTTP 200, non-zero Content-Length) on destination domain |
Scripted URL check on sample; non-ASCII filenames included | ☐ |
| 9 | Cross-object relationships intact (org → contact → ticket) | ID-map lookup on sample | ☐ |
| 10 | Custom field schema exists in destination before values were written | Schema diff: source fields vs. destination fields | ☐ |
| 11 | Custom field values present and correctly mapped | Field comparison | ☐ |
| 12 | Non-ASCII content in subject, body, and filenames is not corrupted | Raw API comparison on sample records with non-ASCII content | ☐ |
| 13 | Archived/deleted records migrated (if in scope) | Count of archived records in source vs. destination | ☐ |
| 14 | Every mismatch in log has a disposition and owner | Log review | ☐ |
| 15 | Delta sync completed and re-count passes after sync | Incremental sync run + re-count using updated_at >= T_start |
☐ |
| 16 | Delta sync used UPSERT semantics (not INSERT-only) | Configuration review of migration pipeline | ☐ |
| 17 | Destination automations, triggers, and notifications re-enabled | Admin check | ☐ |
This checklist covers data migration, not the broader platform implementation or upgrade project. The migration moves the data; it does not rebuild workflows, retrain agents, or reconfigure integrations. For broader workflow and system testing, see our post-migration QA checklist.
A summary is not audit evidence
After a migration, an auditor, compliance officer, or engineering manager will ask who had access, what moved, what did not, and how the destination is known to match the source. A conversational output from an AI agent or a brief email from a vendor does not answer those questions.
True accountability requires a run ledger of every record, a documented ID map, and a reconciliation report proving parity. The report should include: record-count parity per object type, a list of approved exclusions and confirmation they did not migrate, field-level validation results for the hard-case sample, the mismatch log with dispositions, attachment accessibility confirmation, relational integrity checks, and the delta sync re-count. If your current approach cannot produce these artifacts, you are operating on faith, not engineering rigor.
If you are evaluating migration approaches, ask the vendor or tool for a sample reconciliation report before the run, not after. The structure of that report tells you more about the rigor of the process than any marketing claim.
Frequently Asked Questions
- How do you verify data after a migration?
- Verify in three layers: compare record counts per object type between source and destination, run a field-by-field comparison on a sample of about 100 deliberately hard records per major object (high comment counts, attachments, old dates, deactivated owners), and specifically check the fields migrations lose most often—created/updated timestamps, authors, public vs. internal notes, attachments, and cross-object relationships.
- What is a data reconciliation report?
- A data reconciliation report is a post-migration document comparing source and target systems, showing record counts per object, field-level mismatches, missing or broken attachments, relationship integrity, and any rejected records with reasons. It serves as auditable proof that the data was transferred correctly.
- What fields are most commonly lost during data migration?
- Created and modified timestamps, original authors and owners, the distinction between public and internal notes, file attachments (especially those behind expiring signed URLs), and relationships between records (parent-child links, contact-to-organization associations). These fields require platform-specific import APIs to preserve.
- Should I re-run a migration if I find mismatches?
- Re-run if the mismatch is systemic—affecting most records rather than a handful. Systemic issues include all timestamps showing the migration date, all authors collapsed to a service account, or broken relationships across an entire object type. Isolated mismatches on a few records can often be patched via API after cutover.
- Can you fix historical created dates after a migration?
- In most SaaS platforms, you cannot patch historical created dates on live records once they are created. Salesforce lets you set audit fields only when a record is created, not on a later update. If dates are overwritten, you must delete the records and re-run the migration using the platform's specialized import APIs.