It started with an error message. A live sync between an ERP and a CRM was rejecting records with duplicate-parameter errors, and the log grew every time the job ran. The rejected records turned out to be duplicate contacts in the CRM with no company assigned, so each time the sync tried to create a record it collided with a copy that already existed.
The technical fix was an upsert: update the matching record if it exists, and create it only if it doesn't. The errors stopped. A day later the more useful question arrived: why were there duplicates at all?
Following the problem upstream
I built a register of every client record and flagged each issue I could find. Most of what it showed had nothing to do with the sync. Some clients had no email address, so the CRM couldn't recognise them. Some customer codes clashed. Some businesses were both clients and suppliers, which the ERP held as two roles and the CRM treated as two people. A large block of records described customers who hadn't ordered in years.
Each problem started where the record was created or maintained, often years earlier, by people entering data for their own job with no reason to think about how another system would read it.
Treating quality as a cycle
The Data Management Body of Knowledge (DMBOK) describes data quality management as a continuous cycle of planning, acting, checking and improving, much like quality control in a factory. I find that useful because it points at the process that creates the defects. A one-off cleanup leaves that process in place, and the data drifts back.
The process fixes themselves are usually small:
- A matching key both systems agree on. The sync needs one field it can trust to identify a customer, and that field has to be required when the record is created.
- Checks where data is entered. A missing email or a malformed code is cheapest to fix at the moment someone types it, with a rule that stops an incomplete record being saved.
- Written rules for the awkward cases. Businesses that are both clients and suppliers, and dormant accounts with no orders, need a documented decision on how each system treats them.
- An owner for each type of issue. A register without owners is a list of complaints. With a named person and a review date for each category, it becomes something you can manage.
Why integration finds these problems
Integration is often the first time one system has to read another's records literally, so it's when most companies discover their data problems. Followed back to their source, integration errors are one of the best diagnostic tools a business has.
AI raises the stakes. A model that segments customers or scores accounts inherits every duplicate, gap and ambiguity in the records beneath it. On this project the sync fix took a day. The rules for creating customer records, agreed with the people who enter them, are what keep the errors from coming back.