DEV Community

Serguey Shinder
Serguey Shinder

Posted on

Our Clean Up Merged Two Builders Who Shared a Yard and Put the Son on Stop for His Father's Debts

Last year we ran a project to remove duplicate customer accounts. Over twenty years our branches had opened new accounts for customers they could not find quickly on the screen, and about six thousand accounts looked like the same customer twice. Duplicates do real harm, from split credit limits to statements showing half the balance.

A data quality tool scored pairs of accounts on name, address, phone number and email, and merged any pair that scored above a threshold. We checked a sample of a few hundred by hand, found the matches convincing, and let it merge four thousand two hundred accounts over a weekend.

Three weeks later a groundworker rang our credit controller, furious. His account was on stop, and the statement explaining why listed invoices he had never seen. His father runs a building firm from the same yard on the edge of a village. They share a surname, an address and an office phone, and the father's account was overdue. The tool had seen two accounts with nearly the same name at the same address and made them one, and our credit rules had done the rest.

When we looked properly, a hundred and thirty eight merges had joined different businesses: fathers and sons, brothers, and firms renting units on the same industrial estate whose addresses differed only by a unit number the tool treated as noise. Unpicking them was far harder than merging had been. Every invoice, payment and credit note had to be returned to the right customer by branch staff who knew them.

A duplicate is an inconvenience you can live with. A wrong merge is a mistake that spreads through every record attached to it. We had treated the threshold as a measure of how alike two accounts looked, when the question that mattered was whether they were the same business.

Merges are now proposals. Limited companies are merged only when their registration numbers match. Sole traders and partnerships are proposed to the branch that opened the accounts, and someone there confirms each one. Every merge keeps the original accounts so it can be reversed, and the tool is tested on samples drawn from shared addresses, which is where its mistakes live.

Two records that look alike are a question for someone who knows the customers, not an answer.

– Serguey Shinder

Top comments (0)