Blog

When the CRM Is Updated but the ERP Isn’t: How Customer Data Synchronization Fails, and How to Fix It

Enterprise operations and IT leaders meeting in a modern glass conference room in front of a presentation screen showing a CRM to ERP customer data synchronization diagram and data drift risks

Day 14. A customer’s accounts payable team phones to ask why the invoice went to an office they closed two weeks ago. Finance opens Business Central and the old address is right there. Sales opens Dynamics 365 Sales and the new address is right there too. Both systems are healthy, both are “connected”, and one customer is sitting in the gap between them.

Here is how that gap usually opens:

When
What happens
What nobody notices
Day 0
The rep updates the Account in the CRM
Nothing. It looks done
Day 0, overnight
The scheduled job picks up the change and tries to update the Customer
The typed country “UK” has no matching Country/Region Code
Day 0 to 14
The job logs one error for that record, then reports an otherwise healthy run
The error list has no owner
Day 14
An invoice leaves with the old bill-to address
Finance and sales each blame the other team

I have walked into this situation on many projects, and the first thing I tell the room is that the integration is rarely “broken”. Something between the CRM edit and the ERP record is doing exactly what it was configured to do. The work is finding which link in the chain that is, and then deciding whether the fix is a setting, a process, or code.

Decide who owns the field before you debug anything

The most common failure is also the least technical. If sales can change a bill-to address in the CRM and finance can change it in Business Central, you have two writers on one field and no rule for who wins. Whatever the integration does next will look like a bug to one of those teams.

My starting point in every integration workshop is a field-level ownership decision for the customer. Contact names, phone numbers and email addresses belong to the CRM. Legal name, tax registration, payment terms, currency, credit limit and posting groups belong to finance in the ERP. Addresses need an explicit call, because a bill-to address is a financial fact while a visiting address is a sales fact. That decision translates directly into mapping direction: a finance-owned field should flow from the ERP to the CRM only, and a sales-owned field the other way. Most “lost updates” I investigate trace back to a field left bidirectional because nobody wanted to decide.

What the integration actually does with a change

It helps to be precise about the mechanics, because every failure lives in one of these steps. In the standard Business Central and Dataverse integration, a Customer is coupled to a Dataverse Account. The link is stored in the integration record table, so the sync knows which record updates which. The integration table mapping for customers defines the direction of the whole entity, any table filters on either side, and the modified-on fields used to find changed records. Beneath it, integration field mappings define each field pair: its own direction, whether the value is validated on arrival, and whether a transformation rule applies. A job queue entry then runs the synchronization on a schedule and writes the outcome to the synchronization job log and its error table.

So a CRM edit becomes an ERP update only if the record is coupled, passes the table filter, has a modifiedon newer than the last sync, sits in a field with the right direction, survives validation in the target, and is picked up by a job that is actually running. That is six conditions in a row. When someone says “the update never arrived”, I ask which of the six failed, in that order.

A sync that reports success is not the same as a sync that delivered your change.

Where it breaks in real projects

MAPPING_MISSING The field was never mapped. A custom column added to the Account after go-live, such as a separate invoicing email, is invisible to the integration until someone adds a field mapping. The sync reports success on every run, which is exactly why this one survives for months.

DIRECTION_ONE_WAY The direction is one-way. A field mapped only towards the CRM can never bring an ERP change back, and the reverse is just as true. I check direction per field, not only per entity, because an entity can be bidirectional while a given field is not.

VALIDATION_FAILED The record was rejected on arrival. This is the one I see most. The CRM accepts free text, while Business Central validates. A country typed as “UK” has no matching Country/Region Code, a postal code and city combination fails against the Post Code table, a payment terms or currency value has no counterpart, or the customer is blocked. The job logs an error for that record, moves on, and the rest of the batch looks healthy. Unless someone reads the error list, the record stays stale indefinitely.

LOOKUP_MISMATCH Reference data does not line up. Option sets and free text on the CRM side against code tables on the ERP side is a data modelling gap, not a sync gap. The mapping can only be as good as the lookup between the two, which is why I treat reference data clean-up as part of the integration scope.

NOT_COUPLED Coupling or filters exclude the record. Customers created by hand in both systems, or loaded in bulk before the integration was switched on, are often uncoupled or duplicated. Others are excluded by a table filter someone added to limit the initial load and then forgot.

JOB_NOT_RUNNING The job simply did not run. A job queue entry in an error or on-hold state, or scheduled at an interval nobody remembers choosing, looks identical to a broken integration from the user’s seat. It is the first thing I check because it takes thirty seconds.

MODIFIEDON_MISSED Incremental sync cannot see the change. The sync finds candidates through modified-on timestamps. Changes that bypass them, such as a data migration script, custom code that writes without the usual triggers, or a time zone mismatch, can leave a real change invisible to the next run.

The part that surprises finance: existing documents keep their copy

Even a perfect sync does not rewrite history. Open sales orders in Business Central carry their own copy of the sell-to, bill-to and ship-to details, and posted documents are records that must not change. So when the customer card is updated correctly, the next new order picks up the new address, while the order entered last week still ships to the old one. I have seen teams lose days debugging a sync that was working, because they were looking at an order and not at the customer card. This needs a business rule written down: what happens to open orders when a customer changes address, and who is responsible for updating them.

How I trace a single customer

I never start with the whole integration. I pick one customer that is demonstrably out of sync, open it in both systems, and walk the six conditions in order. In Business Central that means checking the coupling status from the customer card, then the integration table mapping for the customer entity (direction, filters, last sync timestamps), then the field mapping for the specific field, then the job queue entry and the synchronization job log, and finally the error message logged against that record. In most cases the answer is in the job log or the error text. The rest are ownership or process questions that no amount of code will settle. Page and table names shift between versions, so confirm them in yours.

Only when the standard configuration is correct and the ownership rules are agreed do I consider building anything. Configuration first, monitoring second, custom logic last.

Making failure visible: what I build

The standard integration already records its errors. What it does not do is tell anyone. My design rule for any extension here is no silent failures: every record that is out of sync should appear on a list that someone owns, with an age on it.

The tool I reach for first is not code at all. It is a diagnostic map that ties each failure to its symptom, the place I look, and the person who owns the fix. I leave it with the client team, and it becomes the runbook for whoever gets the next “the address didn’t update” ticket.

Failure
What the user sees
Where I look
Who fixes it
Field not mapped
Sync succeeds, but one field never changes
Integration field mappings
Admin or consultant
One-way direction
A change in one system never comes back
Direction on the field mapping
Data owner decides, admin changes
Rejected on arrival
One record stays stale, the rest of the batch is fine
Synchronization job errors
Data steward
Reference data mismatch
The same value (country, payment terms) fails again and again
Lookup tables on both sides
Finance and CRM admin
Uncoupled or filtered out
The record never updates at all
Coupling status and table filters
Admin
Job not running
Nothing updates anywhere
Job queue entry status and schedule
Admin
Old document copy
Customer card is right, the order is wrong
Address fields on the sales order
Sales operations

From that map comes the design I specify for a sync health view inside Business Central. It lists coupled customers whose key fields differ between the two systems, shows a first-seen date for each mismatch so that age drives priority, counts unresolved synchronization errors by cause, and shows when each job last ran successfully. The same data is exposed to Power BI and Power Automate, so the owner is alerted before the customer notices. The acceptance criterion I write is simple: every mismatch older than one day appears on the data steward’s list.

Two design decisions matter more than the code. First, the extension reads and reports; it never writes into the customer. Fixing drift stays with the data owner, because an automated overwrite in the wrong direction is worse than a stale address. Second, any change to how a field transfers belongs in events and extension objects, not in a fork of the standard integration logic. Mappings are also a trap here: resetting the default integration setup can replace manually edited mappings, so extra field mappings should be re-applied by code that survives a reset, not left as someone’s manual configuration.

Finally, I push validation to the source. If the CRM country is a free-text box, the ERP will keep rejecting it. Turning it into a lookup against the same code list removes the error class instead of reporting on it.

Where AI helps, and where it does not

Once the drift list and the error log are clean, structured data, AI has real work to do on top of them.

The most useful application I have seen is error triage. A page of synchronization errors is hard for a finance user to read. A model that receives the error text together with the record can group them by cause and propose the fix in plain language: “14 failures, 11 because the country value ‘UK’ has no Country/Region code, suggest GB.” Delivered through a Copilot Studio agent or a Power Automate flow, it gives the data steward a worklist with proposed corrections instead of a log.

The second is duplicate and mismatch detection. Fuzzy matching on name, address and tax number across coupled and uncoupled records finds the customer that exists twice, where the CRM updates one copy and finance invoices the other. A human confirms each match.

The third is drift explanation. Run the comparison nightly and let a model look for the pattern: all mismatches began the day a CRM form changed, or cluster on one field. That shortens root cause analysis from days to minutes.

Two rules go with all of this. AI proposes and a person with the right authority approves, particularly for financial master data such as bill-to details. And AI does not fix undecided ownership: if nobody owns the address field, a model only helps the two systems disagree faster. Check which Copilot and agent features are available in your Business Central version and region, because they change with each release wave.

Every field needs one owner, one direction, and one person who is alerted when it fails.

Conclusion

When customer data fails to synchronize, it is almost never because the integration stopped working. It is because ownership was never decided, a field was never mapped, a record was rejected without anyone reading the error, a job did not run, or an order kept its original address. The fix is a clear ownership model, correct mappings and scheduling, visible monitoring, and only then targeted code, with AI used to triage and explain rather than to decide.

The question worth asking your team is not whether the CRM and ERP are connected. It is how quickly you would know, and who would be told, if one customer’s address changed in one system and not the other.

How do you find out today when a customer record drifts between your CRM and ERP? I’d be glad to compare notes. Connect with me on LinkedIn or reach out to discuss your integration setup.

Connect with Allgrow Technologies

100% Free · No Obligation

Need an Objective Architecture or Code Assessment?

Discuss your Dynamics 365, Business Central, or Power Platform environment in a free 30-minute session with our senior engineers.

Get a Free 30-Minute Review →
Chat on WhatsApp