ContentsThe pattern
2AI data migration
5Lifecycle
7Playbooks
Guide · The pattern
Value mapping
The business decides what each value of the old system becomes in the new one. The migration collects the values on every run, and applies the decisions that have been made.
Also called "lookup mapping" · "code translation" · "cross-reference tables". Terminology→
N3031,200mapNET30Net 30 daysN609,400mapNET60Net 60 daysCOD3,100leave emptyempty, on purposeSTAFF250create in the targetSTAFFStaff termsZZ50exclude from the loadtest customers: rejected, with that reason30D1,000not decided yetthe rows are rejected until it isFour answers Map to a target value · leave empty · exclude from the load · create in the target.
Every run Collects the values again, with the count of rows. A new value shows as work to do.
The same picture, as text
A VALUE LIST, as an example, after an early run: the payment terms of 45,000 customers
THE OLD SYSTEM ROWS THE DECISION OF THE BUSINESS THE NEW SYSTEM
N30 31,200 map ──► NET30 Net 30 days
N60 9,400 map ──► NET60 Net 60 days
COD 3,100 leave empty
STAFF 250 create in the target ──► STAFF Staff terms
ZZ 50 exclude from the load test customers: rejected, with that reason
30D 1,000 not decided yet the rows are rejected until it is
FOUR ANSWERS map to a target value · leave empty · exclude from the load · create in the target
EVERY RUN collects the values again, with the count of rows. A new value shows as work to doAn AI lists the values that still need a decision, the most used first, and proposes a target value for each, with its reason. The business decides. A person can read the same list and propose the values with no AI.
See how it is done with Convago→Why
- The business owns itHave the business decide each value, and record who decided.WhyOnly the business knows what a code means in its own work. A migration team that maps the values itself can produce data that loads without an error and is wrong, and the fault may not be found until someone uses the data.
- From the targetStart each list from the values that the new system allows.WhyA row loads only if its value exists in the target. A mapping that is made from the source alone points at values that do not exist, and the rows fail when they are loaded. Where the target lacks a value that the business needs, the business has it created in the target first.
- The real valuesCollect the values from the data in scope, with the number of rows that use each one.WhyThe values in the documentation are the ones that were planned. The data also holds the ones that were typed in over the years. The counts say which matter: 31,200 rows of one value deserve an hour, and 50 rows of another may not.
- Not in the codeKeep the decisions as data that the SQL reads, and not as rules inside the SQL. A list of two or three values that will not change can stay in the code.WhyA mapping that is written into the code can only be changed by a developer, and each change means that the code is tested again. A mapping that is kept as data can change until late in the project, while the tested code stays tested.
- Asked onceKeep each decision, and use it on every later run.WhyA decision that is not kept has to be made again at each run, and the two answers can differ. A decision that is kept is asked for once, and the work that is left is only what is new.
- Empty on purposeRecord "leave empty" as a decision of its own.WhyIn the list, a value with no decision and a value that is left empty on purpose both have no target value. Unless "leave empty" is recorded as a decision, the work that is left looks the same as the work that is done.
The specification of the old system lists four payment terms. The first run finds six in the data: the four, a code that staff were given years ago, and a code that marks 50 test customers. The two extra values are on the list from the first run, with their counts, and the business decides them with the rest.
How
- Collect on every runRead the values from the data in scope each time the load runs. The first run has no decisions yet, and it still runs. A value that appears later is added as work to do.
- Show the label, keep the codePeople choose by the name that they know, such as "Net 30 days". The migration stores the code that the target needs.
- Offer four answersA value is mapped to a target value, left empty, excluded from the load, or created in the target. A value with no answer yet is not decided. In this example its rows are rejected until it is, because the check on a value with no decision is an error. A row whose value is excluded does not load either: it is counted as rejected, with the decision of the business as its reason, so the count still closes. A stand-in record for a value that is missing is a plug, not a mapping: see plugs.
- Map the short lists togetherGo through a short list with the business in the package meeting. A long list leaves the meeting with an owner, a count of its values and a date.
- Follow it upThe value mapping goes on through the build. It is extra to the daily work of the business, and nothing in the old system prompts it, so the migration asks and follows up. Show the values still to map on the scoreboard, for each domain.
- Work where the business canThe mapping is done in a tool that the business can open, or in a spreadsheet that carries the list out and the decisions back. The decisions are kept in one place either way.
- Keep one copyUse the same decisions in every environment, so that a test and the cutover map a value in the same way.
More
- The pattern: where the mapped value sits beside the old one.
- Checks, counts and totals
- Domain, package, table: the value mapping runs beside the package.
- The six touchpoints: the package meeting.
- The business analyst