Skip to content

Systems and records

MES and historian data: what production records to keep when replacing a system

By SourceX Editorial · Updated

Short answer

When replacing an MES or historian, keep production event records in full: orders, lot genealogy, downtime events, quality checks and operator actions. Treat raw sensor history by tier: full resolution for tags tied to quality, safety and critical assets, summaries plus detail around events for the rest. Decide tiers before the old system is switched off.

Key takeaways

  • MES event records are compact and readable on their own, so keep them in full along with the master data that decodes them.
  • Historian tags should be tiered by what they explain, not by how much storage they take.
  • Keeping full-resolution data around recorded downtime and quality events makes summarized tags far more useful later.
  • Tag dictionaries, units, equipment hierarchy and compression settings must be archived with the values or the data cannot be interpreted.
  • Regulatory and customer requirements for production records sit above any size-aware rule and are checked first.

Event records and raw sensor history are different archives#

MES event records and historian sensor data need different archive rules because they differ in size, shape and meaning. Event records describe what happened in production: an order started, a lot was consumed, a line went down, a check failed. Historian data is a time series of measurements from tags such as temperatures, pressures, speeds and flows.

The common planning error is treating both as one block of data. Event records are cheap to keep whole; raw sensor history needs a deliberate, size-aware decision, tag by tag.

Event records and raw sensor history are different archives
QuestionMES event recordsHistorian sensor history
What it recordsOrders, lots, steps, downtime, checks, operator actionsTag values over time
SizeModest relative to the plant's operating historyGrows with every tag and every stored sample
Meaning without contextMostly readable on its ownNeeds tag names, units and equipment context
Default keep ruleKeep in fullKeep by tier: full resolution, summarized or dropped
Main risk at replacementGenealogy links broken in migrationAn archive too large to keep or too thin to use

The keep list for MES event records#

Keep every MES event record that connects a product to how it was made. Customers, auditors and engineers ask about exactly these records, and they are rarely large.

Export event records with their native IDs and timestamps, and note whether the MES stored local time or UTC. Daylight saving shifts and mixed time conventions are a common reason lot genealogy and historian values stop lining up once the old system is gone.

  • Production orders with planned and actual quantities, start and end times.
  • Lot and batch genealogy: which material lots went into which finished lots.
  • Routing steps executed, with equipment, operator and timestamps.
  • Downtime events with reason codes and operator comments.
  • In-process quality checks, results, holds and dispositions.
  • Recipe or parameter versions used for each order.
  • Scrap, rework and yield records by step.
  • Electronic signatures and approvals, where the MES records them.
  1. 01Your work records
  2. 02Personal details removed
  3. 03You approve the release
  4. 04Licensed to AI developers
How it works with SourceX: Your work records → Personal details removed → You approve the release → Licensed to AI developers.Illustrative

A size-aware rule for historian tags#

The size-aware rule for historian data is to tier tags by what they explain, not by how much disk they use. Start from the tag list in the historian's configuration and classify every tag before setting retention.

Write the tier decision down tag by tag, with the name of the person who approved it. A dropped tag cannot be recovered, and a signed list shows later that the choice was deliberate rather than an accident of the migration.

Event windows are what make Tier 2 useful. When the MES records a downtime or quality event, keep the raw values for related tags in a window around it, sized to how fast that process moves, and keep summaries everywhere else. Size the result from the plant's real tag counts and sample rates before committing to storage.

Compression settings matter because historian values are usually not every reading a sensor produced. Most historians store values by exception and compression rules, so record those settings with the archive. Otherwise a later analyst may treat a flat line as a stable process when it was really a deadband.

A size-aware rule for historian tags
TierWhich tagsWhat to keep
Tier 1: full resolutionTags tied to product quality, safety, regulatory limits or critical assets with a failure historyEvery stored value, plus configuration and units
Tier 2: summaries plus event detailProcess tags useful for analysis but not criticalInterval minimum, maximum and average, plus full resolution around downtime and quality events
Tier 3: summary or dropUtility, comfort and redundant tagsShift or daily summaries, or nothing, by documented decision

Context that makes old production data readable#

Context is what turns archived production data from numbers into evidence. A tag value means little unless you know the equipment it measured, its units, its normal range and what changed on the line around it.

Archive the tag dictionary, units and engineering ranges, the equipment hierarchy, instrument replacements and calibration dates, line modifications, product and recipe codes, and shift calendars. For a PI System or a similar historian, that means the tag configuration and asset model as well as the archive files that hold the values.

For the MES side, the equivalent is master data: product codes, equipment lists, reason code tables and status definitions. Export them in the same pass as the event records, because a reason code that cannot be decoded is just a number.

Illustrative: a coatings plant retiring its MES#

Illustrative: a fictional industrial coatings manufacturer is replacing a home-grown MES and an aging historian with a new platform. The integrator plans to migrate open orders, master data and recent history only.

The plant operations lead runs the keep list. All lot genealogy, batch records, downtime events and quality holds are exported in full with product and equipment codes. Historian tags are tiered: viscosity, temperature and mixer load tags on the batch reactors stay at full resolution, utility tags are summarized by shift, and redundant tags are dropped by signed decision.

The archive stays in the company's own storage. When a customer complaint arrives about an old lot, quality traces the lot to its raw materials and pulls the reactor temperature profile for that batch.

Regulated records and customer requirements come first#

Regulatory rules and customer contracts can set their own requirements for production records, so the size-aware rule sits underneath them, not above them. Food, drug, medical device and aerospace manufacturers in particular may hold batch, device history or traceability records with defined retention expectations.

Customer quality agreements can also require you to keep inspection results, lot traceability or process data for a stated period. Check those obligations with your quality team and counsel before any record family is summarized or dropped.

Where such an obligation applies, keep the records in a form that preserves their integrity: original values, audit trails and electronic signatures, not a re-keyed copy. A cleaned-up extract that drops the audit trail may fall short of the requirement even when every value is present.

How SourceX approaches production records#

SourceX approaches MES and historian archives as physical-world operating records: what a plant planned, what the equipment did and how people responded. Event records with operator comments and quality dispositions carry the human decisions; sensor history supplies the physical context around them.

Large historian archives stay in the manufacturer's own storage or ship on encrypted drives, because SourceX never hosts multi-TB datasets. Under the SourceX Enterprise Data Value Framework, scale and recency raise value while preparation cost lowers net value, and any release through the SourceX five-step transaction needs the manufacturer's approval and a SourceX Evidence Packet.

Frequently asked questions

Can we keep the old historian running instead of archiving?

For a while, yes, but an old historian needs licenses, patched servers and someone who knows it. Use the overlap to build the tiered archive and a tag dictionary, then retire the system on a planned date rather than when the hardware fails.

Is downsampled sensor data still useful?

Yes, for trends, seasonality and comparisons across years. It is weaker for diagnosing fast events, which is why the tiered rule keeps full resolution around downtime and quality events. Record exactly how each summary was calculated so later users can trust it.

Should operator comments be kept?

Yes. Comments on downtime and holds explain what codes cannot: a jammed feeder, a late material delivery, a judgment call on a borderline result. They are among the most informative records an MES holds, though names may need removing before any outside use.

Who owns data from connected equipment?

It depends on your contracts. Some equipment makers collect machine data through their own platforms under terms that give them rights to use it. Check equipment and software agreements before assuming the data is yours to keep or license.

How do we estimate archive size before deciding tiers?

Multiply the number of tags in each tier by their stored sample rate and the years you plan to keep, then add summaries and event windows. Your historian administrator can pull tag counts and rates from the configuration, which beats guessing.

Related resources

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies