Connect Salesforce to Dynamics 365 with a flow that only creates records, and each run that touches an existing customer writes another copy. Poor data quality already costs organizations an average of $12.9 million a year, according to 2020 Gartner research, and a Salesforce Dynamics 365 integration without a shared record key adds to that bill each time it runs.
Teams usually arrive here from 1 of 2 setups: an acquisition brought a second CRM, or 1 sales team works in Salesforce while another works in Dynamics 365 Sales. Both CRMs stay in production in this scenario, and the job is keeping each customer as 1 record on each side. If you’re still choosing between the 2, our Salesforce vs Dynamics 365 comparison covers that decision.
Most duplicates trace back to 4 gaps: no cross-reference ID stored on both sides, writes that create new records where they should upsert, retries that repeat a create, and lead conversions that add customers the other CRM already holds. The 2 platforms also behave in opposite ways by default: Salesforce blocks an API save that trips an alert-type duplicate rule, while Dataverse skips duplicate detection on API writes unless the request asks for it.
Closing those gaps, and keeping 2 teams’ edits intact, takes design work. Each record pair needs an external ID in Salesforce and an alternate key in Dataverse that an upsert reads on every write, and each object and field needs a system of record. Filters on the integration user stop echo updates from turning into sync loops, and when 1 account is edited in both systems within minutes, field-level ownership keeps both edits.
What a Salesforce Dynamics 365 Integration Syncs, Object by Object
The pairing in question is Dynamics 365 Sales, the CRM app that stores its records in Dataverse, running alongside Salesforce Sales Cloud. Connecting Salesforce to Dynamics 365 Finance & Operations is an ERP integration project with different objects, such as sales orders and invoices, so it needs a separate object map. Each core Salesforce sales object has a matching Dataverse table, though not every pair should sync in both directions.
Salesforce object | Dataverse table | Sync advice |
|---|---|---|
Account | account | Sync both ways; this is where most duplicate records start |
Contact | contact | Sync both ways, keyed to the parent account on each side |
Lead | lead | Sync 1 way or not at all, since conversion creates new accounts and contacts |
Opportunity | opportunity | Sync 1 way, from the system where the deal is worked |
User (record owner) | systemuser | Never copy owner IDs raw; map users through a lookup table |
Tasks and events | activity tables | Usually left out, because volume eats API limits fast |
Field mapping is where the 2 data models differ most. Salesforce keeps the whole street in 1 multi-line BillingStreet field, while the Dataverse account table splits it across address1_line1 to address1_line3, and a Salesforce picklist stores text values where a Dataverse choice column stores an integer with a label. Map every value explicitly, because an unmatched value fails on a Dataverse choice or restricted picklist and saves as a stray entry otherwise.
Start a Salesforce Dynamics 365 integration with accounts and contacts, like most Salesforce integration projects that move customer records. They carry the customer identity both CRMs share, and once those 2 objects pair cleanly, data synchronization for opportunities becomes a matter of following each deal’s parent account. Activities can join later, once the API budget for the core objects is known.
Why Two Connected CRMs Keep Creating Duplicate Records
The first cause is a flow that only knows how to create. Microsoft’s documentation for the Power Automate Salesforce connector warns that its “When a record is modified” trigger returns new and modified items alike, so a create-only flow on it copies each new account once on creation and again on every later edit. A lookup against the cross-reference ID before the create step closes that gap.
The second cause is the absence of a shared key. When a customer already exists in both CRMs before the integration starts, nothing tells the sync that “Acme Corp” in Salesforce and “Acme Corporation” in Dynamics 365 are the same company, so the first run pairs nothing and copies everything. Name matching can’t settle it, since names vary for 1 company and repeat across different ones.
The last 2 causes come from retries and lead conversion. Dataverse throttles with HTTP 429 at its service protection limits and connectors time out under load, so integrations retry by design, and a create that saved before timing out writes a second record when retried. Converting a lead on 1 side creates a new account and contact that the other CRM may already hold, the kind of untested gap that makes Salesforce integrations fail.
How Salesforce and Dataverse Treat Duplicates From an Integration
Both platforms ship duplicate tooling, and both treat integration traffic differently from a person typing into a form. Every synced record is written by an integration user, so the rules and headers on that user’s writes decide whether a duplicate stops the sync with an error or slips into the other CRM unseen.
Those writes meet opposite defaults on each side. Salesforce’s duplicate rules stop an integration write that matches an existing record, while Dataverse saves the same write unless the request turns duplicate detection on. In practice, an integration that writes into Salesforce surfaces duplicate problems as errors on day 1, while the same integration writing into Dataverse can run for some time before anyone spots the copies.
Salesforce | Dynamics 365 (Dataverse) | |
|---|---|---|
Native tooling | Matching rules plus duplicate rules, with standard rules for accounts, contacts and leads | Duplicate detection rules, with default rules for common tables such as accounts and contacts |
Rule limits | Up to 5 active duplicate rules per object, each with up to 3 matching rules | Up to 5 published rules per base record type |
Behavior on API writes | No alert is shown, and a record that trips the rule can’t be saved | Duplicate detection is suppressed by default for Web API and SDK creates and updates |
How to change it | Set allowSave to true in the duplicate rule header to save past an alert | Send the header MSCRM.SuppressDuplicateDetection: false to apply the rules |
Cross-system key | External ID field | Alternate key |
Key limit | Up to 25 external ID fields per object | Up to 10 alternate keys per table |
What a match returns | The save fails with a duplicate error | Error 0x80040333: a duplicate already exists |
Decide both settings on purpose. On the Salesforce side, the DuplicateRuleHeader controls whether the integration user can save past an alert, and on the Dataverse side, the suppression header decides whether your rules run at all. Both settings still need a cross-system key underneath them, because matching rules compare names and emails, values that change over time.
The Cross-Reference ID Pattern That Keeps Records Paired
A sync needs an exact pairing between records, and the pattern that gives it is simple: each CRM stores the other CRM’s record ID, and every write looks up the record by that ID before it decides to update or create. That lookup-then-write is an upsert, and it stops a two-way sync from creating the same customer twice. Name and email matching belongs in cleanup, where it flags likely duplicates for a person to review before any IDs are stored.
In Salesforce: An External ID Field
- Field type: a custom Text field on Account and Contact, with room for the 36-character Dataverse GUID including its hyphens
- External ID: checked, so REST upsert and Bulk API 2.0 can match records on it
- Unique: checked, so a second record carrying the same GUID fails with a visible error
Salesforce allows up to 25 external ID fields per object, so this key fits alongside IDs that other systems, such as an ERP, already store on the same records. Give it a name both admin teams recognize, such as Dataverse_GUID__c, and make its uniqueness case-insensitive, because GUIDs can arrive in upper or lower case.
In Dynamics 365: An Alternate Key
- Column type: a single line of text column on the account and contact tables, holding the Salesforce record ID
- ID format: the 18-character version, since Salesforce describes 15-character IDs as case-sensitive and 18-character IDs as case-safe
- Alternate key: defined on that column, so upsert requests can address a row by its Salesforce ID
Dataverse allows up to 10 alternate keys per table, and a new alternate key stays inactive until a background job finishes building its index. Build both keys into your Salesforce API integration before the first record moves, because every record created without a key has to go back through cross-system matching and review later.
What an Upsert Returns on Each Platform

After a create, the upsert response returns the new record’s ID, which the sync must write back to the source record to complete the pair. Dataverse takes an upsert as a PATCH request addressed by alternate key in the Web API or as an UpsertRequest in the SDK. These are the 4 outcomes to handle, using Salesforce’s upsert by external ID and Dataverse’s upsert by alternate key.
No match: Salesforce creates the record and returns HTTP 201, and Dataverse creates a new row. This is the only path that adds a record, and it fires only when the key doesn’t exist.
One match: Salesforce updates the record and returns HTTP 200 on API version 46.0 and later, and Dataverse updates the existing row. Nothing new is created, and only the fields sent in the request change.
More than one match: Salesforce returns a 300 error, lists the matching records and writes nothing. That only happens when the external ID field isn’t marked Unique, so the error points straight at the setup gap.
Retry after a timeout: a retried upsert finds the record the first attempt already created and updates it, while a retried create writes a second copy. Salesforce’s API guide recommends upsert over create “to avoid creating unwanted duplicate records.”
There is a trade-off. Microsoft’s upsert documentation notes a performance penalty for upsert compared with create, which matters for a one-time bulk load of brand-new records but rarely outweighs safety in an ongoing sync. Create is fine for an initial load of records that exist on only 1 side, and every write after that in ongoing data synchronization should be an upsert.
Choosing a System of Record for Every Object and Field
Two CRMs editing the same customer need a rule for who wins, decided per object and then per field. An example design for a company whose sales teams split across both systems sets owners like this, and your field mapping should follow the ownership your teams agree on.
Object | Record owner | Fields both sides can edit | Conflict rule |
|---|---|---|---|
Account | The CRM that created it | Name, phone, billing address, website | Each field has 1 owning system; the other side’s edits go to a review queue |
Contact | Same as its parent account | Email, phone, job title | Email belongs to the record owner; phone and title use the latest change |
Opportunity | The CRM where the deal is worked | None | 1-way copy; the other side is read-only |
Lead | The CRM that captured it | None | Not synced until converted, then handled as an account and contact |
Field-level ownership is safer than record-level “last write wins,” because it keeps both people’s edits when they change different fields. Last write wins is simpler but discards whichever edit arrived first, while the example design’s review queue catches every non-owner edit on accounts, where a wrong overwrite of a field such as the legal name is expensive. Write the winning rule for each field into the field mapping document, so the integration and both admin teams work from the same list.
Owner fields need their own field mapping. A Salesforce user ID means nothing in Dataverse, so keep a small table that maps each Salesforce user to a Dynamics 365 systemuser and translate through it, assigning unmapped users a default owner so the record still saves. Update that table whenever a rep joins or leaves either team.
How to Stop Sync Loops and Echo Updates
A two-way sync can echo: Salesforce sends a change to Dynamics 365, Dynamics 365 sees an update and sends it back, and the loop repeats. Each pass spends API calls on both sides, and these 5 controls stop it.
- A dedicated integration user on each side. Every write the sync makes is stamped with that user, so the sync can recognize its own work.
- Triggers that skip the integration user. The outbound trigger on each side ignores records last modified by the integration user, so an inbound update never fires an outbound one.
- A last-synced timestamp or hash. Store when, or with what values, each record last synced, and send a change only when the record has moved since then.
- A value check before every write. Compare incoming values with what’s already stored, and skip the write when nothing differs, which also saves API calls.
- A single direction per owned field. A field owned by 1 CRM is only ever written toward the other, so a change can’t bounce back from the side that doesn’t own it.
A late echo can also overwrite a newer edit with older values, which is data loss that surfaces only when users notice it, so these controls belong in the first build of any data synchronization. To test them, replay 1 change twice: if the second pass writes nothing on either side, the sync is safe to repeat (idempotent, in integration terms). Our comparison of integration specialists and generalist developers lists interview questions that test a developer for that skill.
One Account Edited in Both Systems, Minute by Minute
Take 2 people editing the same customer, Acme, within 2 minutes of each other (an illustrative timeline), and run the sync once with field-level ownership and once with record-level last write wins.
Time | What happens to Acme |
|---|---|
9:00 AM | A rep in Salesforce updates Acme’s main phone number. Acme was created in Salesforce, and the example design gives Salesforce ownership of Acme’s phone and billing address fields. |
9:02 AM | A colleague in Dynamics 365 updates Acme’s billing address, another field Salesforce owns, before the 9:00 change has synced across. |
9:05 AM, field-level ownership | The sync sends the new phone number to Dynamics 365 and routes the Dynamics address change to a review queue. Both edits survive, and the address waits for 1 person to approve it. |
9:05 AM, record-level last write wins | The sync sees Dynamics 365 changed the record last, copies the whole Dynamics record over Salesforce, and the 9:00 phone number disappears without any error. |
9:06 AM, without the loop controls | The Salesforce update made by the sync fires the outbound trigger, the sync sends Acme back to Dynamics 365, and both CRMs burn API calls rewriting the same values. |
Tally the run: last write wins lost the 9:00 phone number without a single error, while field-level ownership plus the loop controls kept both edits and spent API calls on the 2 real changes and nothing else.
Cleaning Both Databases Before the First Sync
An integration that starts from 2 messy databases copies the mess across, and every copied duplicate then gets a cross-reference ID that makes it look legitimate. Run these 5 phases in order before you switch on the two-way sync, since each one depends on the phase before it.
- Profile duplicates inside each CRM. Run Salesforce duplicate jobs (Performance and Unlimited editions) or a matching-rule report, plus Dataverse duplicate detection jobs, on accounts and contacts, and count the clusters so you know how much cleanup each side needs and have a baseline to compare after go-live.
- Merge and choose survivors. Merge duplicates inside each CRM first, keeping the record with the most activity history, so each customer exists once per system. Re-run the step 1 checks afterward to confirm the cluster count dropped.
- Match across the 2 CRMs. Pair records between systems on email for contacts and on website domain plus normalized name for accounts, and send uncertain pairs to a person.
- Backfill both cross-reference IDs. Write each Dataverse GUID into the Salesforce external ID field and each Salesforce ID into the Dataverse alternate key column for every matched pair.
- Test-load a sample. Upsert a few hundred records through the integration user, confirm nothing new was created for paired records, then open the sync to everything.
Cleanup removes the duplicates that already exist, while every later safeguard in a Salesforce Dynamics 365 integration only stops new ones. Teams can clean up existing duplicates first and treat the pairing as a one-time data migration step, and Salesforce’s Bulk API 2.0 upsert handles the later bulk loads, since it matches on the external ID field the backfill just filled.
Merges, Deletes and Lead Conversion Across Two CRMs
When Accounts Are Merged
When users merge accounts in Salesforce, the losing record is deleted and its MasterRecordId field points to the winning record. The sync has to catch that delete and merge the matching Dataverse row into the winner’s pair (or repoint it to the winner’s ID if the winner has none), or the next sync recreates the losing account. Dataverse merges need the same handling, since its merge deactivates the losing row.
When a Record Is Deleted
Decide whether a delete in 1 CRM deletes, deactivates or flags the paired record in the other, and deactivating is safer in most two-way sync designs because a mistaken delete can be reversed. Microsoft’s connector documentation notes that its query-based Salesforce actions may not return deleted items, so deletes need their own detection path. Salesforce keeps deleted records in its Recycle Bin for 15 days, so a sync that logs every delete it carries out leaves a window to restore a mistake.
When a Lead Is Converted
Converting a lead creates an account and contact, and in Salesforce duplicate rules don’t run on conversion unless Use Apex Lead Convert is enabled. Before a converted lead syncs across, check the new account and contact against existing pairs by email and domain, so conversion attaches to the customer the other CRM already has and adds no duplicate records. Salesforce’s convert screen already lets a rep attach the lead to an existing account, so reps should pick the synced account whenever it shows up there.
Integration Options Compared for Duplicate Handling

A Salesforce Dynamics 365 integration runs on 1 of 5 common routes, and the right one depends on daily change volume and on who will maintain the flows. The routes differ in how much duplicate protection arrives built in, and stored keys plus upserts cover whatever a copying route leaves out.
- Power Automate. The Salesforce connector is Premium in Power Automate and allows 900 calls per connection per 60 seconds. Duplicate handling: it includes an “Insert or Update (Upsert) a Record by External ID (V2)” action, but its “When a record is modified” trigger also returns new records, so flows compare CreatedDate with LastModifiedDate before creating anything. Fits: moderate volume and teams already working in Power Platform.
- Azure Logic Apps. The same Salesforce connector runs at the Standard tier in Logic Apps, billed per execution on the Consumption plan. Duplicate handling: the same upsert action and trigger caveat as Power Automate. Fits: teams that want Azure monitoring and source control around the flows.
- MuleSoft. MuleSoft publishes connectors for both Salesforce and Microsoft Dynamics 365. Duplicate handling: the Dynamics 365 connector documents batch create and update operations with no upsert listed, so the matching logic lives in the flow you build. Fits: companies already running MuleSoft integration for other systems.
- A custom build. Change Data Capture publishes Salesforce changes as events, with 25,000 event deliveries a day on Enterprise Edition and 5 selectable objects without an add-on, and Dataverse can push its own changes to a webhook or Azure Service Bus. Duplicate handling: you call upsert on both sides directly and control every rule. Fits: high volume and an in-house engineering team.
- Salesforce Connect. It reads external data on demand and leaves it stored in the source system, and it’s a paid add-on. Duplicate handling: records that are never copied can’t be duplicated. Fits: teams that only need to view the other CRM’s data from inside Salesforce.
Pick by volume and ownership. Power Automate and Logic Apps suit thousands of changes a day with an admin-led team, MuleSoft and custom builds suit higher volume or many connected systems, and Salesforce Connect suits read-only visibility where a full Salesforce Dynamics 365 integration would be more than the business needs. Whichever route wins, run the cleanup and backfill phases first, because no connector pairs records that were never matched.
What the Sync Costs in API Calls and Licenses
Every write in a Salesforce Dynamics 365 integration spends from a daily allowance on at least 1 side. This worked example syncs 20,000 changed records a day into a Salesforce org on legacy Enterprise Edition with 50 licenses, which gets 150,000 API calls per 24 hours under Salesforce’s API request limits (100,000 plus 1,000 per license).
Write method | What 20,000 changes cost | Against the limit |
|---|---|---|
Salesforce REST, 1 record per upsert | 20,000 API calls | 13.3% of the daily 150,000 |
Salesforce sObject Collections, 200 records per upsert | 100 API calls | Under 0.1% |
Salesforce Bulk API 2.0 upsert job | A handful of calls per job | Negligible |
Power Automate connector, 1 record per call | About 22 minutes on 1 connection | 900 calls per connection per 60 seconds |
Dataverse, 1 record per request | About 17 minutes per integration user on 1 web server | 6,000 requests per 5 minutes per user |
Batching is the biggest lever on that daily allowance, with Bulk API 2.0 suited to the initial load and nightly catch-up jobs and collections suited to near-real-time batches of up to 200 records. Echo loops and retried creates can double these numbers and push a busy hour past Dataverse’s service protection limits, so the loop controls protect the API budget as much as the batch size you pick.
Licensing adds the fixed costs. Power Automate Premium lists at $15 per user per month and Power Automate Process at $150 per bot per month, MuleSoft packages start at $2,000 per month, Salesforce Pro Suite charges an extra $25 per user per month for API access, and Salesforce Connect is a paid add-on. Logic Apps on the Consumption plan bills per action execution instead, so a flow that triggers on every modified record pays for each echo the loop controls miss.
A Go-Live Checklist for Duplicate-Free Sync
Run this list with both CRM admins before the sync goes live, and sign off each group before moving to the next. Each unchecked box opens a path to duplicate records or lost edits in a Salesforce Dynamics 365 integration.
Keys and Rules
- External ID field on Account and Contact, marked Unique
- Alternate key active on the Dataverse account and contact tables
- Salesforce duplicate rule actions chosen for the integration user
- Dataverse duplicate detection header decided for integration writes
Data
- Duplicates merged inside each CRM
- Cross-reference IDs backfilled for every matched pair
- User mapping table complete, with a fallback owner for unmapped users
- Field ownership agreed and written down for each synced field
- Field mapping documented, including picklist values and address fields
Operations
- Integration users created on both sides
- Loop filters tested with an edit made in each CRM
- Error queue and daily reconciliation report running
- 1 named owner for ongoing data synchronization
Testing
- Same record edited in both CRMs within 1 sync cycle, with field ownership applied
- Timeout simulated mid-write, with the retry updating the record and creating nothing new
- Merge, delete and lead conversion each tested end to end
- 1 day of production-like volume run against the API limits on both sides
Treat the reconciliation report as the long-term safeguard. A daily count of records paired, unpaired and in error shows drift before users notice it, so the report belongs in any Salesforce managed services plan that monitors the integration for as long as both CRMs stay connected.
A Team That Knows Salesforce and Dynamics 365
Stopping duplicates between two CRMs means setting rules in both, which takes people fluent in Salesforce and Dataverse. HyphenX Solutions has 250+ Salesforce professionals, including integration architects who design the external ID pairing and developers who test the sync before real records move. The system-of-record decision gets written down once, field by field, and applied on both sides. Read more about who we are.
Case Study: Stopping Duplicates at the Point of Entry
From Swivel-Chair Prospecting to Single-Click Pipeline A B2B SaaS company pulled prospect data into Salesforce from Apollo, Lusha and Hunter by hand, with no deduplication, so the same account could be created 3 different ways. HyphenX Solutions rebuilt the flow inside Salesforce with real-time deduplication against existing records and a field-level source-of-truth policy, so records now land deduplicated and source-attributed by default. Key takeaway: Duplicates are cheapest to stop at the moment a record is written, which is the same principle behind upsert and cross-reference keys in a two-way sync between Salesforce and Dynamics 365. Read the full case study: From Swivel-Chair Prospecting to Single-Click Pipeline |
Frequently Asked Questions
Is There a Native Integration Between Salesforce and Dynamics 365?
No single built-in sync connects the 2 CRMs. Teams use Power Automate or Logic Apps with Microsoft’s Salesforce connector, MuleSoft, a custom build on both platforms’ APIs, or Salesforce Connect to view external data without copying it. The right choice depends on change volume, who will maintain the flows and whether both teams edit the same records.
How Do You Prevent Duplicate Records When Syncing Salesforce and Dynamics 365?
Store each CRM’s record ID in the other, as a unique external ID in Salesforce and an alternate key in Dataverse. Then upsert every ongoing write, clean both databases before the first sync, and stop sync loops with an integration user and trigger filters.
Does Two-Way Sync Create Duplicates?
It does when it writes with create instead of upsert, has no cross-reference key or retries failed creates. A two-way sync built on paired IDs and upsert updates the matching record on each side and adds nothing new. Merges and lead conversions need their own checks, since both change records outside the upsert path.
Can Power Automate Sync Salesforce and Dynamics 365?
Yes. Microsoft’s Salesforce connector includes an upsert-by-external-ID action and triggers for created and modified records. Its “When a record is modified” trigger returns new and modified items alike, so flows need a check before they create anything.
Is the Power Automate Salesforce Connector Premium?
Yes. Microsoft lists it as Premium in Power Automate, Power Apps and Copilot Studio, and Standard in Logic Apps. Power Automate Premium lists at $15 per user per month, paid yearly.
What Is an External ID in Salesforce?
It’s a custom field that stores a record’s ID from another system. Salesforce allows up to 25 per object, and upsert can match on it, creating a record when no match exists and updating it when 1 does. Marking it Unique as well stops a second record with the same value from saving.
What Is an Alternate Key in Dataverse?
It’s a column or set of columns that uniquely identifies a row, such as a stored Salesforce ID. Dataverse allows up to 10 per table, and upsert requests can target a row by its alternate key. A new key stays inactive until Dataverse finishes building its index.
Do Salesforce Duplicate Rules Apply to API Integrations?
Yes. For records added or edited through Salesforce APIs, no alert is shown and a record that trips the rule can’t be saved. The integration can set allowSave to true in the duplicate rule header to save past an alert.
Does Dynamics 365 Duplicate Detection Run on Integration Writes?
Not by default. Microsoft suppresses duplicate detection for creates and updates through the Web API and SDK. Sending the header MSCRM.SuppressDuplicateDetection set to false applies your published rules to that request.
What Happens When the Same Record Is Edited in Both Systems?
That depends on your conflict rule. Field-level ownership keeps both edits when they touch different fields, while record-level last write wins keeps only the most recent version of the whole record and drops the other edit. Agree on the rule before go-live, because the sync applies it to every conflict.
Should the Sync Be Real Time or Scheduled?
Near-real-time sync suits accounts and contacts that both teams use daily. Scheduled batches suit high-volume objects, since batching through Bulk API 2.0 jobs uses far fewer API calls than single-record writes. Many teams run both, with near-real-time sync for edits and a nightly job that reconciles anything that failed.
What API Limits Apply to the Sync?
Salesforce’s legacy Enterprise Edition allows 100,000 API calls per 24 hours plus 1,000 per Salesforce license. Dataverse limits each user to 6,000 requests per 5 minutes per web server, and Microsoft’s Salesforce connector allows 900 calls per connection per minute.
What Happens to Synced Records After a Merge?
In Salesforce, the losing record is deleted and its MasterRecordId points to the winner. The sync must repoint or merge the paired Dynamics 365 row, or the next run recreates the deleted account. Dataverse’s own merge deactivates the losing row, which keeps a trail if the merge needs reviewing.
Can Salesforce Show Dynamics 365 Data Without Copying It?
Salesforce Connect reads external data on demand and leaves it in the source system, so nothing gets duplicated. It’s a paid add-on, and it suits teams that only need to view the other CRM’s data.
Should I Sync Both CRMs or Migrate to 1?
Sync when both teams must keep working in their own CRM, such as after an acquisition. Migrate when 1 system will retire, and use the same cleanup, matching and ID backfill steps for the one-time move.