Food manufacturing software must handle one FSMA 204 record that receiving and shipping never see: transformation, where input lots become a new product. The software assigns the new traceability lot code there and links every input lot used. A production batch number counts only if the plant uses it as that code.
Plant operations and manufacturing digital leads will find the FDA fields, where to assign the code, how to handle rework and how to test a trace.
What does food manufacturing software need to record for FSMA 204?
Food manufacturing software must record each FSMA 204 transformation: the new traceability lot code assigned when a plant turns foods on the Food Traceability List into a new product, and every input lot, quantity, location and date behind it. Agnotic Technologies builds that link into the production record, so a trace runs from finished lot to inputs.
Building traceability into production?
We record each transformation with the new lot code and its inputs, in the system the line already uses.
FDA's Food Traceability Rule requires firms that manufacture, process, pack or hold foods on the Food Traceability List to keep Key Data Elements for Critical Tracking Events, and to provide records to FDA within 24 hours of a request or a reasonable time FDA agrees to.
Under the Food Traceability Rule you must assign a traceability lot code when you transform a food on the Food Traceability List, and you must not set a new one for other activities such as shipping. Transformation includes manufacturing, processing, commingling, repacking or relabeling.
What should the transformation record link together?
The transformation record should link the new traceability lot code to each input lot code and quantity, the product and quantity made, the location and the date. Agnotic captures input lots when they are consumed on the line, not at the end of the shift.
| Part of the record | Where it comes from | Common failure |
|---|---|---|
| New traceability lot code | Assigned when the run starts | Using a batch number that resets daily |
| Input lots and quantities | Scanned as each input is consumed | Typed in from memory after the run |
| Product and quantity made | The production order and the count at the end | Rework not recorded as its own input |
| Location and date | The line and the run | Missing when one lot runs across two days |
FDA's page lists the exact Key Data Elements for each Critical Tracking Event. Build the fields from that list, not from this table.
How fast does the plant need to produce the trace?
The plant has to provide records to FDA within 24 hours of a request, and in an outbreak or recall an electronic sortable spreadsheet, unless exempt. That only works if the links already exist in the data.
- Check whether your foods, or the listed foods used as ingredients, are on the Food Traceability List.
- Write down how the plant assigns traceability lot codes. The rule asks for this in a traceability plan.
- Test a trace from one finished lot back to its inputs before an auditor asks.
- Keep HACCP records separate. They answer a different question.
Which fields does FDA list for a transformation record?
FDA lists the transformation Key Data Elements in 21 CFR 1.1350: details of each listed input lot used, and details of the new lot produced. Every one of them has to link to the new traceability lot code.
For each new traceability lot made by transformation, 21 CFR 1.1350 requires, for each listed input lot used, its traceability lot code, product description and quantity with unit of measure. For the new lot it requires the new code, the location description, the date transformation was completed, the product description, the quantity and unit, and the reference document type and number.
| Key Data Element | Typical plant source |
|---|---|
| Input traceability lot code | Scanned from the input's label or receiving record |
| Input product description | Item master in the ERP |
| Input quantity and unit used | Scale reading or scan count on the line |
| New traceability lot code | Assigned by the system that opens the run |
| Location description | The plant's site details, as the traceability lot code source |
| Date transformation was completed | Run close in the MES or production log |
| New product description, quantity and unit | Production order and finished count |
| Reference document type and number | Production order or batch record number |
Where should the new traceability lot code be assigned: ERP, MES or the line?
The new traceability lot code should be assigned by the system that knows when a run starts and which line it is on. In many plants that is the MES, or the production module of the ERP, and labels print from that code.
| Assigned in | Works well when | Watch out for |
|---|---|---|
| ERP production order | Orders map one to one to runs | One order spanning several runs or lines gets one code for all |
| MES at run start | The MES already tracks line starts and stops | Manual starts that bypass the MES |
| Label printing software | Small plants with no MES | Codes that exist on labels but in no record |
Whichever you choose, write it into the traceability plan and make it the only place codes are created.
How should the software handle rework, blending and partial lots?
Rework, blending and partial lots are where transformation links tend to break, because material moves without a clean start and end. Treat each one as an input with its own lot code.
- Rework: product pulled back into a run is an input lot, scanned like any ingredient, under its original code.
- Blending or commingling: every source lot is recorded with its quantity, even small top-ups.
- Partial lots: when part of an input lot is used, record the quantity used and keep the remainder under the same code.
- Carryover: material left in a hopper between runs is recorded against the run that consumes it.
Backflushing consumption from the bill of materials gives quantities but not which lot went in. For listed foods, the actual input lot needs to come from a scan or a selection on the line.
What happens when one input lot feeds many finished lots?
When one input lot feeds many finished lots, the software must trace forward from that input to every finished lot, as well as backward from a finished lot to its inputs. Both queries run on the same links.
- Backward trace: start at a finished lot code, list every input lot and quantity, then repeat for any input the plant made itself.
- Forward trace: start at a suspect input lot and list every finished lot that used it.
- Depth: keep following links through intermediates, such as a sauce made one day and used the next.
Intermediates are the usual gap. If an intermediate contains a listed food and the plant makes it, that step is a transformation with its own lot code.
What should the traceability plan say about transformation?
The traceability plan should say how the plant assigns traceability lot codes when it transforms a listed food, where transformation records are kept and in what format, and who answers questions about them.
21 CFR 1.1315 requires a traceability plan that describes how the required records are kept, including their format and location, how listed foods are identified and how traceability lot codes are assigned. It must name a point of contact, be updated as practices change, and a replaced plan must be kept for 2 years.
- Name the system that assigns codes, and the format of the code.
- Describe how input lots are captured on each line, including rework and carryover.
- State where records live and how the sortable spreadsheet is produced from them.
A worked example: a fresh-cut leafy greens line
A worked example: a plant washes, cuts and bags leafy greens it has confirmed are on the Food Traceability List. Each morning the supervisor starts a run in the MES, which assigns a new traceability lot code and sends it to the bag label printer.
As each tote of incoming greens is tipped into the wash line, the operator scans its lot label and the scale records the weight used. Partway through, a tote from a second supplier lot is added and scanned the same way.
At the end of the run, the MES closes the record with the finished bag count and the production order number. A backward trace from any bag code now lists both supplier lots and their weights, and a forward trace from either supplier lot finds this run.
What to log on each transformation record
The software should log who captured each input, when and on which device, plus every correction made afterwards. An auditor will ask how a record changed as often as what it says.
| Event | What to keep |
|---|---|
| Input scanned | User, device, time and the lot code read |
| Quantity captured | Source of the value: scale, count or manual entry |
| Correction | Old value, new value, user, time and reason |
| Run closed | Finished quantity, closing user and time |
How do you test a transformation trace before FDA asks?
Run mock traces on real runs, picked by someone outside production, and time how long it takes to produce the sortable spreadsheet in both directions.
- Step 1, pick a finished lot from a past month at random and trace it back to every input lot.
- Step 2, pick an input lot and trace it forward to every finished lot that used it.
- Step 3, compare the result with the batch records for the same runs and list every mismatch.
- Step 4, fix the capture step behind each mismatch, then repeat with a different lot.
Who owns traceability lot codes in the plant?
Quality owns the traceability plan and the rules for lot codes. Production owns capturing inputs on the line, and the systems team owns the software that enforces both.
- Quality: the plan, the code format, mock trace results and the point of contact named in the plan.
- Production: scanning inputs, recording rework and closing runs accurately.
- Systems team: code assignment, scan validation, audit logs and the export used for FDA requests.
What are the common mistakes with transformation traceability?
The common mistakes with transformation traceability happen on the line, where material moves faster than records, rather than in the ERP.
- Treating a daily batch number as the traceability lot code when it repeats across days or lines.
- Backflushing inputs from the bill of materials, so the record shows quantities but not which lots went in.
- Recording rework as waste plus new material, which breaks the link to the original lot.
- Letting more than one system create lot codes, so labels and records disagree.
- Running mock traces only on simple, single-input products, where the links rarely break.
What does transformation traceability mean for your build plan?
Transformation traceability is mostly line-side work: scanners, labels and screens operators use mid-run. Plan the build around the lines that handle listed foods first, and treat ERP changes as the second step.
- Step 1, list which products and intermediates contain foods on the Food Traceability List, and which lines make them.
- Step 2, choose the one system that assigns traceability lot codes, and make label printing read from it.
- Step 3, add input scanning wherever material enters a run, including rework and carryover.
- Step 4, build the backward and forward trace export, then run mock traces before widening to other lines.
How does Agnotic build transformation traceability into plant software?
Agnotic builds lot code assignment at run start, input lot capture on the line, the links for rework and intermediates, and the backward and forward trace export. We work inside the MES or ERP the plant already runs, or add a line-side app where those systems cannot take scans.
New lot code, every input linked
Transformation is where traces break. Record it on the line.
Related reading on Agnotic
HACCP records, food safety software, plant IoT and more build notes for industry.


