# Internal lot codes: make identifiers stable before making them clever

An internal lot code needs to identify the intended production or handling unit consistently. Its value comes from reliable links to records, not from encoding every possible detail into a label that becomes difficult to read or maintain.

> An internal lot code needs to identify the intended production or handling unit consistently. Its value comes from reliable links to records, not from encoding every possible detail into a label that becomes difficult to read or maintain.

Kivloo editorial team · 2026-10-25

## Define the decision behind the record

Document where the code is created and how duplicate codes are prevented. Keep product identity alongside the code and avoid using a date alone when more than one distinct batch can exist on that date.

## Make the identifier stable and the relationship explicit

Define the unit of identification: supplier lot, receipt event, internal production batch or packaging event. These can be related without being the same object. Choose who assigns internal identifiers and how collisions are prevented across products, sites and repeated production on the same day.

Keep the original supplier identity and record its link to the internal code. Do not rely only on encoded characters to explain origin or destination; retain explicit receipt and transformation records. If an identifier is corrected or replaced, preserve the mapping and reason rather than overwriting history.

Test the design with two batches produced on one day, two sites and a delivery containing several supplier lots. Ask a colleague to retrieve the source record from the label and then trace its outputs. A code that looks informative but resolves to more than one object is less useful than a simple stable identifier with complete linked records.

## Worked example

Two preparations occur on the same day. The team assigns distinct identifiers and links each to its actual inputs. Staff can find the correct batch without guessing which run the date refers to.

## Build a usable record

Use the fields below to capture the facts needed for this particular decision. Keep the actual observation separate from any later correction or approval.

- Lot creation event

- Product and internal lot identifier

- Relevant source references

- Creator and creation time

- Duplicate check and correction history

## Example record and review decision

Fictional record example: REC-01 / supplier ING-A: source identity; internal LOT-2026-001: stable identifier; MAP-01: explicit connection.

Create a second batch at another site and check that it cannot accidentally reuse the same internal identity.

Encoding only a date can create collisions when several products or production runs share that day.

## Test the review, not just the form

Try creating two batches with similar names and dates. Test lookup from a printed label and a typed code. Retiring an identifier or correcting a label must not transfer the historical records to another batch.

## Must the lot code contain every production detail?

No. Keep the identifier usable and store the associated details in linked records. Follow any applicable identification requirements separately.

## Is a production date a sufficiently unique lot code?

Not necessarily. Several products, runs or sites can share the date. Test uniqueness within the intended scope and retain explicit mappings to supplier lots, receipts and outputs rather than assuming the date encodes all required relationships.

## Continue reading

- [Food batch traceability: connect deliveries, ingredients and finished products](https://kivloo.com/en/guides/food-batch-traceability-records)

- [Batch genealogy: record input-to-output links during production](https://kivloo.com/en/guides/batch-genealogy-input-output-links)

- [Rework traceability: preserve the link to the original batch](https://kivloo.com/en/guides/rework-traceability-record)

- [Food receiving records: identify what arrived, not just what was ordered](https://kivloo.com/en/guides/food-receiving-record-identifiers)

- [Digital HACCP records: build a temperature log your team can actually use](https://kivloo.com/en/guides/digital-haccp-temperature-records)

- [Workplace safety inspections: turn findings into verified corrective actions](https://kivloo.com/en/guides/workplace-inspections-corrective-actions)

## Sources and further reading

- [GS1 · Global Traceability Standard](https://www.gs1.org/standards/traceability)

- [Codex Alimentarius · CXG 60-2006 / Traceability principles](https://www.fao.org/input/download/standards/10603/CXG_060e.pdf)

Operational guidance, not a certification or a legal assessment. Adapt examples to your site, approved procedures and local requirements. Product links lead to the English website; this guide does not imply a fully translated application or verified hardware compatibility.

Canonical: https://kivloo.com/en/guides/designing-internal-lot-codes