OSMAINT

Academy / Data and migration

Clean the register before you load

Lesson 2 of 512 minProject leads, data owners, consultants

Goal

Turn a list of asset names into a hierarchy the system can reason about.

The import will accept almost anything. That is the problem. A register with duplicate codes, missing classes and assets parented to the wrong location will load cleanly and then produce reports that nobody trusts.

The cleaning checklist

  • Unique code per asset, stable and meaningful. Do not reuse a retired code.
  • One parent per asset. Resolve the assets that appear under two locations.
  • A class from the installed standard for every maintainable asset.
  • Criticality for the assets that matter. Not for every bolt.
  • Consistent naming: Pump 12 and P-12 are the same asset until they are not.
  • Retired assets marked retired, not deleted, so history keeps its anchor.

The class problem

This is where most migrations fail. Legacy systems often have a free-text type field, and the standard needs a class. Map the free-text values to classes in a table, review the long tail by hand, and accept that the last five percent will need a human decision.

Locations before assets

Create sites and functional locations first. An asset import that references a location by name will skip rows whose location does not exist yet. The import reports those rows; it does not create the missing parents.

Caution

Do not clean in the target system. Clean in a staging file, load the staging file, and keep it as the migration record.

Verify

Your staging file has one row per asset, a unique code, a parent, a class and a criticality where required. No row references a location that does not exist.

Terms

Staging file
The cleaned export that is loaded into the new system, kept as the migration record.
Class mapping
A table that maps legacy free-text types to standard equipment classes.
Progress is stored in this browser only.

OSMAINT Academy · Data and migration · Clean the register before you load · osmaint.org/academy/