Executive Summary

Lot traceability in manufacturing is the ability to trace the complete history of a production lot, from raw material sources through all production operations, quality inspections and distribution events, and to be able to access that history in both directions: forward, meaning which customers received product from this lot, and backward, meaning which raw material lots contributed to this finished goods lot.

Lot traceability is the data infrastructure that makes product recalls targeted, not broad, and audit responses faster, measured in minutes rather than days.

From the July 20, 2028 compliance date, food manufacturers covered by FSMA Rule 204 will have to provide traceability records to the FDA within 24 hours of a request. Without lot genealogy captured within the ERP, meeting that window requires a manual search across paper records, spreadsheets and disparate ERP reports.

This guide covers lot versus serial tracking, the genealogy data model, current regulatory requirements, recalls and mock recalls, why traceability breaks, how small manufacturers can start, and how GrayCyan builds traceability into an existing ERP.

What Is Lot Traceability in Manufacturing?

The history has to be queryable in both directions, and each direction answers a different question.

Forward trace
  • Forward tracing begins with a raw material lot code and tracks every finished goods lot that used that material, then every customer or distribution point that got those finished goods.
  • This answers a critical recall question: which customers do we need to contact if Supplier X's lot fails?
Backward trace
  • Backward trace starts with a finished goods lot code and works backward to determine every raw material lot used to make it.
  • It answers the other question: what went into the lot the customer is complaining about?

A complete trace follows five steps: receive the supplier lot, assign an internal lot code, record which lots each production order consumed, create the finished goods lot, and record which customer received which quantity. At minimum, each step records the lot code, item, quantity, unit of measure, date, location and the linked supplier, production order or customer. Serial numbers are added when individual units need their own history, for example for warranties, field service or device records.

Beyond recalls, the same records support faster audits, expiry control with first-expiry-first-out picking, and supplier quality investigations.

Lot Tracking vs Serial Number Tracking: When to Use Each

Lot and serial number tracking are two traceability methods that serve different operational questions and are used for different types of products. Choosing the wrong approach for a product type results in either too much tracking complexity or compliance gaps.

Lot-coded pallets alongside serialised units on the same production floor

The product decides the method, not the preference of the operation

01
Lot

Lot tracking: a group of units

A lot is a group of units manufactured or received under similar conditions, such as one production run or a shipment from one supplier. Units in Lot 2026-0041 are from the same material sources, production conditions and quality release status.

Lot tracking and traceability is typically used for food and beverage for FSMA 204, pharmaceuticals for cGMP batch records, chemicals, and other batch-based production.

02
Serial

Serial number tracking: a single unit

In manufacturing, serial number tracking uniquely identifies a specific unit. Its record can demonstrate the operations performed, the operators involved, the individual components installed, the customer shipment and subsequent service history.

This level of traceability is common in aerospace for flight-critical serialized parts (requirements depend on the customer and part), medical devices for device history records, defense components, and other high-value products requiring unit-level warranties or field service.

FactorLot trackingSerial number tracking
What gets trackedUnits grouped togetherSingle unit
DetailBatch or lot levelUnit level
For compliance useFSMA 204, cGMPAS9100, device history
Typical industriesFood, pharma, chemicalsAerospace, medical devices, defense
Data model in ERPLot code relating to quantities and transactionsUnique serial ID for a single unit and its history

To decide which level a product needs, check five things: what the regulation asks for, the unit value, whether individual units need warranty or service history, how narrow a recall needs to be, and production volume. Lot tracking is the basis of FSMA 204 and is usually enough for food recalls; serial numbers are not required for food. Low-cost, high-volume products rarely justify serialization. Plain batch numbers on a label are not full lot traceability unless production records link each batch to its input lots and shipments.

Serial capture adds a scan per unit, so it can slow lines and picking if designed poorly. Scanning at natural touch points, printing serial labels in sequence and validating scans automatically keeps the effect on OEE and picking speed small.

Let’s

Talk

Book your manufacturing AI strategy session
20 minutes. We map the three places AI will save you the most time and money — live, on the call. Think of it as a free AI readiness assessment for manufacturers, without the slides.

Lot Genealogy in ERP: How the Data Structure Works

Lot genealogy is the ERP data model that links raw material lots to production lot outputs, and production lot outputs to shipment destinations, creating a chain from supplier to customer that can be queried in either direction.

Without the right ERP data model, lot genealogy is manually pieced together at the time of audit, rather than pulled from structured data. A typical end-to-end lot traceability system has three tiers.

Three-level genealogy chain linking incoming lots to production batches to shipments

Three levels, and the chain is only as good as its weakest link

01
Level 1

Incoming lot record

Each receipt records the supplier, supplier lot code, internal Traceability Lot Code (TLC), product, quantity, unit of measure, receipt date, location, and Certificate of Analysis reference. This record should be fully completed before material is released to production.

02
Level 2

Production lot record

This is the key link for genealogy tracking. It tracks the work order or batch, production date, product, quantity, operator, and quantities consumed from each input lot, linking each input lot consumed to the output lot made.

03
Level 3

Shipment record

The finished goods lot is linked to the customer, quantity shipped and shipment date, allowing forward trace to all destinations.

In practice, lot code traceability often breaks down at level 2. Production may consume materials without recording input lots, substitute one lot for another without updating the ERP, or blend several lots without keeping track of each contribution.

There is also a risk in entering lots manually, since transcription errors can sever the link between ERP lot codes and supplier records. Any of these gaps may disrupt the chain of genealogy necessary for a complete backward or forward trace.

The key fields across the three levels are the lot or serial ID, item, supplier and supplier lot, quantity and unit, dates, location, production order, parent and child lot links, and customer shipment. When an ERP, MES and WMS all touch the product, the ERP usually holds items, lots, orders and shipments, the MES records consumption and output at each operation, and the WMS records locations and moves, all sharing the same lot and serial IDs. This shared model is what lot genealogy software reads to run forward and backward trace reports, which slow down as history grows unless the link tables are indexed and old data is archived.

Mixed-lot pallets need each lot and quantity on the pallet recorded, not just the pallet ID. For traceability shared with customers and retailers, GS1 identifiers carry the product GTIN together with the lot or serial number in GS1-128 or GS1 DataMatrix barcodes.

Lot Traceability Requirements by Regulatory Framework

Lot tracking ERP requirements are not one standard. Several regulatory structures require lot traceability, but each framework specifies different data elements, response time, and direction of the required trace. If a manufacturer is facing multiple frameworks, the ERP needs to be set up to comply with all of them simultaneously.

01
FSMA 204

FSMA Rule 204

Applies to manufacturers of foods on the FDA Food Traceability List, including certain produce, shell eggs, cheeses, seafood, and ready-to-eat deli salads.

It requires Critical Tracking Events (CTEs) with Key Data Elements (KDEs) like receipt, transformation, and shipment. The records contain the TLC, product, quantity, location, date and trading partner identity. Records must be produced within 24 hours of a request. The compliance date is July 20, 2028.

02
AS9100

AS9100 Rev D

Aerospace lot control and traceability links serialized parts to raw material COAs, special processes, inspection results and customer shipments.

Retention periods are usually set by customer contracts and aviation authority rules, and can extend to the service life of the aircraft.

03
Medical

FDA QMSR (21 CFR Part 820) / ISO 13485 and EU MDR

Medical device manufacturers keep records of production and quality to prove that devices were manufactured according to defined specifications.

The requirements for traceability depend on the device and its risk classification. Since February 2, 2026, FDA's Quality Management System Regulation (QMSR) has replaced the previous Part 820 quality system requirements and incorporates ISO 13485 by reference. Unique Device Identification (UDI) labeling applies in the US, and the EU MDR adds UDI and EUDAMED registration for devices sold in Europe.

04
DSCSA

DSCSA

Pharmaceutical traceability employs unit-level serialization and interoperable electronic transaction data at each custody transfer to enable rapid product verification and investigation. The enhanced requirements took effect in November 2023; FDA has granted exemptions for some smaller trading partners, so check the current dates for your role on FDA's DSCSA pages.

See pharmaceutical ERP inventory management for the serialization detail.

Therefore, lot traceability software and recall management software need to provide support for the unique records, retention rules and retrieval requirements for each operation.

To be audit-ready under any of these frameworks, keep a written trace procedure, records of mock recalls, lot and serial records for the required retention period, and a named person who can run a trace. Regulatory details in this section were last reviewed in December 2026.

Let'sTalk

Could You Produce a Full Trace in 24 Hours Today?

20 minutes. Tell us which ERP you run, which framework drives your requirement, and whether level 2 production linkage is actually captured at the event.

Schedule A Strategy Call

Recall Management: How Lot Traceability Determines Recall Scope

The quality of lot traceability data in the ERP directly determines the cost and scope of a product recall. Complete lot genealogy allows a manufacturer to target a recall to specific lots and specific customers. A manufacturer with less-than-perfect genealogy must be more inclusive, recovering more product, alerting more customers, and paying more than the contamination or detection scope actually requires.

Recall scope narrowed to specific production batches and named customers

The same contamination, two very different recalls

01Worked Example

Supplier Lot 2026-0041 (Illustrative Example)

  • With level 2 genealogy: if lot traceability software indicates it was only consumed in production batches 8821 through 8834, which shipped 840 units to 12 customers, the recall can be limited to those customers and units.
  • Without it: if the level 2 production genealogy is not available, the manufacturer might have to recall everything produced during that supplier delivery window, which could be 14,000 units and over 200 customers.

Software for Effective Recall Management Coordinates Four ERP Processes

01

Scope determination

Trace the implicated lot forward to each affected customer, per the FSMA 204 response window, as applicable.

02

Lot quarantine

Flag affected inventory and stop the shipment of remaining affected inventory.

03

Customer notification

Direct extraction of impacted customers, shipment dates and quantities from traceability records.

04

Recall accounting

Coordinate inventory write-downs, credit memos, recall reserves and destruction cost accruals as a single recall event.

See food and beverage ERP inventory management for the recall accounting mechanics.

A mock recall proves the system works before a real one. Pick a recent supplier lot, trace it forward to customers and backward to suppliers, list affected customers and quantities, reconcile the quantities received, produced and shipped, time the exercise, and record any gaps found. Repeating the drill each quarter with a different lot shows whether fixes held. The USDA-regulated processor described below went from two to three days for a trace to under 60 seconds once genealogy was live in the ERP.

Let’s

Talk

Book your manufacturing AI strategy session
20 minutes. We map the three places AI will save you the most time and money — live, on the call. Think of it as a free AI readiness assessment for manufacturers, without the slides.

AI in Lot and Serial Traceability: Compressing Audit Response and Detecting Genealogy Gaps

Traditional lot traceability is retrospective. The genealogy data is in the ERP system and is pulled when there is a recall or audit that needs it. AI-augmented traceability is proactive: it reveals genealogy gaps before an audit, and it shortens the 24-hour recall response from a manual sprint to an automated query.

Agent assembling a traceability package from live ERP genealogy records

Retrospective becomes proactive: gaps surface before the auditor asks

01
Agentic

Agentic audit and recall response

An AI agent could receive an FDA request, customer inquiry, or recall initiation and perform the workflow across ERP records.

It performs the forward trace, creates the list of impacted customers, quarantines remaining inventory across locations, and compiles the necessary traceability documentation. Things that would take days of manual extraction can be built in minutes. See how the data structure that lot traceability software is based on supports it.

02
Gap Detection

AI genealogy gap detection

ML can proactively identify production batches that are missing Level 2 linkages, undocumented lot substitutions, or receiving records that lack corresponding COA references.

Rather than finding these gaps at audit time, manufacturers can identify them as production events arise and stay in a state of continuous trace readiness.

03
Scope

AI recall scope prediction

When a test fails, a supplier sends an alert or a customer complains, AI is able to query the ERP genealogy before a formal recall decision is made. It estimates affected production batches, customer exposure, inventory on hand and potential financial impact.

Quality teams are then able to compare a targeted voluntary recall with a broader precautionary action with better scope information.

These are real examples of manufacturing AI solutions built on top of existing operational data.

How GrayCyan Builds Lot and Serial Traceability into Manufacturing ERP

GrayCyan builds the lot genealogy data infrastructure on top of the manufacturer's existing ERP, featuring scan-based lot capture at every production event, structured genealogy records linking incoming lots to production batches to customer shipments, and AI-powered audit response compressing the 24-hour trace from a manual sprint to an automated query.

Lot data captured by scan at receiving, production issue, inspection and shipping

Captured at the event, not reconstructed at the audit

01What We Build

What GrayCyan Creates

  • Level 1-2-3 genealogy records: live ERP queries are linked, so forward and backward traces are available for incoming lots, production links and shipments.
  • Scan-based lot capture: lot data captured at receiving, production issuing, quality inspection and shipping, cutting down on manual entry and transcription errors.
  • Agentic audit response: AI generates FSMA 204, AS9100 or pharmaceutical audit packages from ERP genealogy data.
  • Genealogy gap detection: ML indicates incomplete trace records before audit time.

In an existing ERP, implementation follows a set sequence: decide lot or serial control per item, clean the item master, switch on lot and serial controls, set up labels and scanners at receiving, production and shipping, test a full forward and backward trace, train staff, and run a mock recall before go-live. ERP-native traceability usually fits when the ERP already runs production and inventory; a separate track-and-trace system fits when serialization data must be exchanged with many trading partners. Hardware is handheld scanners and label printers, with RFID only where reading many items at once pays off. In the warehouse, lots drive first-expiry-first-out picking and quarantine locations, and nonconformances in the quality system are linked to the affected lot and serial numbers.

Why traceability breaks and how to prevent it. Consumption that is never scanned breaks the production link, so issue material by scan. Lots swapped at picking ship the wrong product, so verify each pick against the order. Rework and relabeling without links lose history, so record the old and new IDs together. Duplicate serials corrupt records, so enforce uniqueness at entry. Labels that fail in cold storage need suitable label stock and print quality. Lots that change codes between plants break cross-site traces, so share lot IDs and record transfers on both sides.

An audit trail of who changed a lot record and when, and blocks on shipping quarantined lots, make these controls defensible at audit.

Starting small. A small manufacturer without an ERP can start with a spreadsheet log that records, for every lot, the supplier lot, the production batch that consumed it and the customers who received the output. Spreadsheets fail when entries are missed, production and shipments are not linked, or a trace takes hours, which is usually when retailers or FSMA 204 audits start asking for faster answers. A spreadsheet alone does not guarantee an audit pass; moving to scanning in the ERP is the next step.

Cost and the business case. Cost depends on the ERP module or license, configuration, labels and scanners, integration with an MES or WMS, and training. The return comes from a smaller recall scope, faster audit response, fewer write-offs through expiry control and fewer mis-shipments, as the illustrative recall example and the USDA result show.

One USDA-regulated meat processor, after moving to live ERP genealogy data

60 sec
Audit response time after
2-3 days
Audit response time before
3 levels
Genealogy captured end to end
Live
ERP queries, not reconstructed records

One USDA-regulated meat processor reduced audit response time from two to three days to less than 60 seconds with live ERP genealogy data. See ERP inventory management.

Let’s

Talk

Book your manufacturing AI strategy session
20 minutes. We map the three places AI will save you the most time and money — live, on the call. Think of it as a free AI readiness assessment for manufacturers, without the slides.

Frequently Asked Questions: Lot and Serial Traceability

What is lot traceability in manufacturing?
Lot traceability in manufacturing tracks a production lot in two directions. Forward to identify customers who received the lot. Backward to identify the raw materials used to produce the lot. This data infrastructure enables targeted recalls and faster audit responses across regulatory structures such as FSMA 204, AS9100 and cGMP.
What is the difference between lot tracking and serial number tracking?
Lot tracking is used to track a group of units that are produced or received under common conditions, such as with the same materials, and having the same quality status. Serial number tracking in manufacturing tracks a single unit through its components, operations and destination. Lot tracking is common in food, pharma and chemicals. Serial tracking is common in aerospace, medical devices and defense.
What is lot genealogy?
Lot genealogy is the ERP data structure that connects incoming raw material lots to production batches and those batches to customer shipments. These relationships build a queryable supplier-to-customer chain which supports forward and backward trace. Without structured genealogy, manufacturers may need to manually build these relationships from ERP exports, spreadsheets and paper records.
What does FSMA 204 require for lot traceability?
FSMA Rule 204 requires covered businesses handling foods on the Food Traceability List to record specified key data elements at applicable critical tracking events such as receiving, transformation and shipping. Traceability records required by this rule shall be provided to FDA within 24 hours after a request, or within another reasonable time as agreed to by FDA.
How does lot traceability help with product recalls?
Complete lot genealogy narrows recall scope. A forward trace is used to determine which customers received an affected lot, the quantities involved, and any relevant shipments. If genealogy is not complete, the manufacturer may be required to recall all production over a broader time period, which increases the amount of product recovered, customer notices required, and overall financial impact.
How does AI improve lot traceability and recall response?
AI is able to automate forward and backward trace queries, assemble recall documentation from ERP records and identify incomplete genealogy as production is occurring. It can also help estimate customer exposure and inventory impacted when a potential recall occurs. This allows manufacturers to detect traceability gaps sooner and evaluate the scope of a recall before formal action.
What ERP systems support lot and serial traceability?
Lot and serial tracking is available with NetSuite, SAP, Epicor, Acumatica, Fishbowl, Odoo, Microsoft Dynamics 365 and other mid-market ERPs such as Sage 100. The operational challenge is to ensure that production events consistently capture the correct lot or serial assignment and maintain structured links between incoming materials, production outputs, and customer shipments, so that genealogy remains queryable.
Cloud or on-premises traceability for several sites?
Either can work. Cloud systems make cross-site traces simpler because every plant writes to one database; on-premises systems need reliable replication between sites. What matters most is that every site uses the same lot and serial IDs and records transfers on both sides.
Is lot and serial traceability standard in mid-size ERPs now?
Yes. Most mid-market ERPs include lot and serial controls. The gap is usually not the feature but whether production events capture the right lot or serial consistently.
Which GS1 standards do we need before serializing packaging?
Usually a GS1 company prefix and GTINs for each product, with lot or serial numbers and dates encoded in GS1-128 or GS1 DataMatrix barcodes. Pharmaceutical and device manufacturers may also need EPCIS for exchanging event data with trading partners.
What training do staff need before scanning goes live?
Short, role-based training at the work station: what to scan, when, and what to do when a scan fails or a label is missing. Super-users on each shift help new habits stick.
Let'sTalk

Lot Genealogy Gaps That Show Up at Audit Time?

What ERP do you run? What regulatory framework drives your traceability requirements? Where does your lot genealogy fail: receiving, production linkage, or shipment? GrayCyan will show you what full lot genealogy and AI-driven audit response can look like on your current ERP.

Schedule A Discovery Call

See lot traceability software or begin with our AI Readiness Assessment.