ContentsPrinciples
2AI data migration
5Lifecycle
7Playbooks
Guide · Principles
Data quality
Look at the data before it is mapped. Fix by rule what a rule can fix, and bring the rest to the business with a count, so that it can decide what is worth fixing and where.
Also called "data profiling" · "data cleansing" · "standardisation" · "deduplication" or "matching and merging". Terminology→
41,300 filled3,700 empty
0412 345 67822,100a rule: one format+61 412 345 6789,800a rule: one format(07) 3123 45678,900a rule: one formatask for Bob n/a 12345500for the business to look atIn the migration
A rule that treats every row in the same way.
The format of a phone numberIn the old system
A judgement, record by record.
The right payment term of a supplierA figure that somebody answers for.
A balance that is wrongA fault that the old system still makes.
An order with no customerBy hand, after go-live
A few rows that are not worth a rule.
12 suppliers with no bank detailsThe same picture, as text
A PROFILE OF ONE FIELD, as an example: the phone number of 45,000 customers
filled 41,300 empty 3,700
THE SHAPE OF THE VALUE ROWS WHAT TO DO
0412 345 678 22,100 a rule: one format
+61 412 345 678 9,800 a rule: one format
(07) 3123 4567 8,900 a rule: one format
anything else 500 "ask for Bob" · "n/a" · 12345: for the business to look at
WHERE DOES A FIX BELONG?
in the migration a rule that treats every row in the same way the format of a phone number
in the old system a judgement, record by record the right payment term of a supplier
a figure that somebody answers for a balance that is wrong
a fault that the old system still makes an order with no customer
by hand, after go-live a few rows that are not worth a rule 12 suppliers with no bank detailsAn AI profiles every field of a source table and points out what looks odd. A field that is nearly always empty, a date in the future and a code that is used once are examples. It proposes a rule for each standard clean-up. The business decides what is a fault and what to do about it. A person can profile the same fields with SQL and no AI.
See how it is done with Convago→Why
- Look firstProfile each source table before its mapping is written.WhyThe documentation of the old system says what was planned. The data holds what people typed over the years. A mapping that is written from the documentation meets its surprises in the runs, and each one then costs a cycle of questions and answers.
- Good enough for its useMeasure the data against what the new system needs and what the business will do with it.WhyPerfect data is not the aim: each fault that is fixed costs time, and not every fault affects the work. The useful question is whether the data is fit for the work that it must support. That differs by package: a balance must be exact, and an old fax number may matter to nobody.
- A rule, or a judgementFix in the migration what one rule can fix for every row, and send what needs judgement to the business.WhyA rule is written once, tested, and applied the same way on every run. A judgement that a developer makes inside the code is a decision of the business, made by the wrong person and out of sight.
- A figure keeps its ownerLeave a figure that somebody answers for, such as a balance, to be corrected by that person in the old system.WhyA balance that is adjusted inside the migration no longer agrees with the books that it came from. The people who answer for the figure did not see the change, and cannot stand behind the result.
- Until the last extractPlan for the fixing to go on to the end, and tell the business so at the start.WhyThe old system is in use every day, so new faults are made while the old ones are fixed. When the business has been told, a second list of faults is expected, and it is not read as a failure.
- Duplicates are a decisionLet the migration find the records that look like the same thing, and let the business decide which of them are.WhyTwo records with one name can be one customer that was entered twice, or a parent company and its branch. Only the business knows which. A wrong merge joins the history of two customers, and it is very hard to take apart after go-live.
The new system requires a payment term for every supplier, and 1,900 suppliers in the old system have none. The check flags them, and the business chooses between two fixes.
How
- Profile each fieldFor each field, count how many rows are filled, how many different values there are, and what shapes the values take. Note the shortest, the longest, the lowest and the highest.
- Show the profile to the businessBring it to the package meeting with the first cut. The business can confirm or correct only what it can see, and real values with real counts give it something to see.
- Standardise by rulePhone numbers, email addresses and dates are cleaned by a rule that is the same for every row. Names and addresses can be tidied by rule only so far: case, spacing and known abbreviations. Convago is to ship these as built-in transformations. The old value stays beside the new one, so that anyone can see what the rule did.
- Make each requirement a checkA rule such as "every supplier has a payment term" becomes a check with a level, and each run counts the rows that break it.
- Choose where each fix belongsThe picture gives the three places. The first two last through a new run: the one in the migration is code that every run applies, and the one in the old system arrives with the next extract. So the choice is about who should make the change and who should see it. Where the old system does not allow a fix, such as in a closed period, explained variance gives the other ways.
- Give each problem an ownerList the open problems in the source by domain, with the number of rows and the person who fixes them. The scoreboard shows the list at each check-in.
- Find the duplicates, and askMatch the records on what identifies them: a tax number, an email address, or a name with an address. Give the business the likely pairs, each with the reason for the match. The business says which are the same, which record survives, and what happens to the transactions of the other. The decisions are kept as a list that the migration applies on every run.
- Agree what is good enoughOnce the first runs have shown the faults, have the business say, for each package, which of them must be fixed before go-live. Some data has no room for error, such as what a customer owes. Other faults can be accepted, each with its reason.
- Carry the rest as explained varianceA problem that is still open at go-live is a difference with a known reason. The business accepts it, or it goes on the manual processing list to be fixed by hand: see explained variance. A record that is missing altogether is a different case: see plugs.
The specification says that the field "region" holds one of six codes. The profile finds the six codes in 43,900 rows, and 31 other values in the remaining 1,100, most of them names of towns. The business sees the list in the package meeting, and maps the towns to regions that week. Without the profile, the 1,100 rows would have been rejected in the first run, and the question would have reached the business a cycle later.
More
- Checks, counts and totals
- Value mapping
- Explained variance
- A first table: the profile of a table, with one command.
- Built-in transformations