catfish — ~/articles/rfid-erp-duplicate-events-hkLIVE
ARTICLE — SYSTEMSCATFISH SERVICE · HONG KONG
← All insights

INSIGHTS & NOTES · SYSTEMS

Hong Kong RFID-to-ERP: Preventing Duplicate Reads from Double-Counting Inventory

An RFID read of an item does not mean that one receipt or issue has been completed. Separate event confirmation from inventory posting so you can verify whether duplicate reads and resends after network outages change inventory incorrectly.

8 min readCATFISH SERVICE

Direct answer: When connecting RFID to an ERP, do not add or subtract inventory every time a tag is read. First organize read records into confirmed receipt or issue events, then have the receiving side use a stable event identifier to prevent the same operation from being posted twice; retries after timeouts and offline resends must retain the original identifier. This is an integration design recommendation, not a function that automatically comes from installing RFID or using EPCIS.

First distinguish objects, events, and postings

RFID is a technology for reading tag data using radio frequency. An EPC is an Electronic Product Code; a correctly assigned item-level EPC can identify one specific object, but you cannot assume that every tag has been assigned a unique code. A SKU is an internal number a business uses to manage one product specification. Multiple units of the same product can share a SKU, so a SKU alone cannot tell you which individual item it is.

An ERP is a system that integrates enterprise transaction and operational data; in this article, “posting” means formally recording an inventory transaction. EPCIS is GS1’s event-data-sharing standard, recording objects, time, location, and business context; GS1’s current overview also includes information about “how.” It is not a rule that turns every radio-frequency read directly into an inventory transaction. The GS1 EPCIS overview explains this positioning.

Idempotency means that sending the same request repeatedly has the same expected effect as sending it once. An object identifier answers “which item,” while an event identifier answers “which confirmed operation”; the same item may be issued and then legitimately returned, so you must not permanently ignore an EPC that has been seen before. MDN’s definition of idempotent also notes that POST is not guaranteed to be idempotent; the actual effect depends on the server implementation.

Real Hong Kong context: airport baggage identification, not proof of an ERP architecture

The Hong Kong Airport Authority recorded in an official 2008 announcement that Hong Kong International Airport’s baggage handling and sorting system was using RFID, and that check-in counters could print baggage tags combining an RFID chip and a barcode; Cathay Pacific was one of the first airlines to use it. This is a verifiable Hong Kong business use case, not an assumption about a store.

This historical announcement supports only the facts about baggage identification and handling. It does not disclose an ERP, deduplication, or offline-resend design, and it cannot represent the deployment of all baggage today. What Hong Kong warehouses and stores can learn is that after identifying an object, they still need to use the actual business process to determine the next step; the posting methods below are independent design recommendations, not the internal practices of the airport or Cathay Pacific.

The 5 steps to define before implementation

  1. Retain raw reads; do not change inventory directly. Record the object code, reader, read location, and time for traceability. The layered explanation in the GS1 EPCIS 1.2 specification separates raw reads, collection within a time interval, and higher-level business events; this distinction does not mean that an ERP already supports transaction deduplication.
  2. Confirm the business event against the document. Map identified objects to the SKU, unit of measure, and storage location, then check the receipt, issue, or transfer document. Passing through a doorway, pausing at the doorway, or turning back cannot be treated as a completed issue merely because a signal appeared. If the direction is unclear, the document does not match, or the tag is unregistered, put it on a review queue.
  3. Fix the identifier when confirming the event. Save a stable event ID for each confirmed operation, together with the document, document line, object, operation type, occurrence time, and time zone. This is an application-design field in this approach; it does not claim that all EPCIS versions mandate the same method. The ERP transaction number is another reference created after the receiving side completes the posting; do not generate a new event simply because a response has not arrived.
  4. Prevent duplicate postings on the receiving side. The vendor should explain whether the same event can return the original result and how it rejects the same identifier with different content. Deduplication records and inventory updates must complete consistently, including under concurrent requests. If the ERP and middleware are separate, do not treat two independent writes as one transaction; use an external transaction reference, idempotent interface, or reconciliation mechanism supported by the ERP. If this cannot be confirmed, leave the item in a pending state.
  5. Separate resends from corrections. An offline resend keeps the original event and occurrence time while recording the receipt time separately; the key’s retention period should cover the possible resend period, and expired events should first be reconciled. A genuine return or correction requires an authorized new operation and a reference to the original transaction; do not force a replay by deleting the deduplication record.

The above are acceptance conditions for operations and development colleagues to define together, not a ready-made interface applicable to every ERP. The original GS1 EPCIS 1.2 specification is used here only as background on layering; a new integration should define its data contract according to the vendor-supported version and current GS1 documentation.

Adding only an Idempotency-Key does not necessarily prevent resends

If an API supports an idempotency key, resend the same request with the same key and use a new key for a new operation. However, MDN’s Idempotency-Key documentation labels this header Experimental and Non-standard; the receiving side must publicly specify the supported endpoints, key format, and validity period. If the ERP does not recognize this header, adding it only on the client side provides no protection.

When a timeout occurs, first check whether the original event has already been posted, then resend according to the interface contract; do not blindly retry with a changed key. Ask the vendor: “If inventory was changed but the response was lost, what will the next request for the same event return?” If the answer is unclear, the formal inventory-deduction acceptance condition has not been met.

Run these 5 acceptance tests in a test warehouse

First prepare a checked test document and opening inventory, then run the tests in a non-production inventory environment. The quantities below are test design, not customer results; compare the expected results item by item with the test document.

  • Repeated reads of the same tag: Replay reads of the same object and confirm that they produce only the one intended business operation, without changing inventory according to the number of raw reads.
  • Resend after a lost response: Have the receiving side complete the posting while the client does not receive the result, then resend the same event; the ERP should still have only one inventory impact and should allow the original transaction to be retrieved.
  • Offline resend and concurrent replay: Resend the same batch of events with the original IDs, including simultaneous arrivals and cases near the retention-period boundary; unknown results go to reconciliation, and no new ID is generated to bypass the check.
  • Actual return or transfer reversal: When the same EPC that was issued is legitimately returned, process it with a new event and the corresponding document; do not omit the record merely because it was “read before.” A reversal without a confirmed document should not create a new inventory transaction.
  • Unknown EPC or different content under the same key: An unregistered tag, wrong storage location, different quantity, or different document line must not be posted automatically; retain the rejection reason and a route for human review.

Record the number of raw reads, confirmed events, ERP inventory transactions, and reconciliation differences. Judge pass or fail against the expected document result, not by trying to make the three numbers equal; if each confirmed event is designed to correspond to one posting, verify that one-to-one relationship. For multi-line or multi-location transactions, define the mapping rules first.

Limitations, risks, and when this applies

This approach suits businesses that need to connect RFID to a transaction system. If the purpose is only to locate assets or produce a stocktaking report, there is no need to enable automatic inventory deductions at the outset. Identification errors, a read range crossing warehouse boundaries, inaccurate times, and inconsistent master data can still create wrong events; idempotency can handle duplicate operations, but it cannot prove that the original event was correct.

Restrict who may submit, review, and resend event data; before going live, define an incident owner, reconciliation reports, and a way to disable automatic posting. Do not use AI to guess movement direction or quantity and then directly change inventory, and do not upload customer lists, complete item numbers, or production transaction records to public tools. This article provides no on-site validation, certification for any specific ERP, or zero-error promise.

Organize verifiable inputs before discussing integration

You can first use the AI workflow self-assessment tool to organize the scope of repetitive manual work; it is an estimation tool and cannot test RFID reads or API idempotency or prove inventory accuracy. To actually connect data to transactions, learn about RFID services and ERP implementation services, then decide whether automatic posting is suitable based on the existing vendor interface.

Measurable next step: After completing the 5 tests above, bring the de-identified results to a 15-minute system-direction diagnosis. Provide only the read count, confirmed-event count, ERP-posting count, difference count, and error types; the goal is to identify the first point that does not match the document expectation, not to promise that one consultation will complete the integration.

Frequently asked questions

An EPC has already been read; can we simply ignore it forever?

No. The same item may be issued and then returned; deduplicate by confirmed business event rather than permanently ignoring the object code. A new operation needs the corresponding document and a new event reference.

After an ERP API timeout, can we directly deduct inventory again?

Do not blindly resend a new operation. First check whether the original event has been posted; a resend must reuse the original identifier according to the receiving interface contract. If idempotency or result lookup is not supported, leave it pending and reconcile.

Does using EPCIS mean that the ERP automatically prevents duplicate postings?

No. EPCIS provides semantics and formats for sharing event data; inventory posting, deduplication, permissions, and retention periods still need to be implemented by the business application and ERP interface.

Can the AI self-assessment tool validate an RFID integration?

No. It can only help organize the workflow and estimate repetitive work; RFID identification, API resends, and inventory differences must be tested in the appropriate test environment.

Official sources

Accessed 27 November 2026. The HKIA announcement is historical; EPCIS 1.2 is a layering reference only. Consult GS1 for current standards. Engineering steps are design recommendations, not guaranteed features of a particular ERP.

Authorship and checks: Catfish Service daily content agent (AI)CATFISH SERVICEAI-assisted writing with source checks and automated technical checks. No human editorial review, client-site validation or external certification. Last checked: 2026-11-27

Bring test results, locate the duplicate posting

Complete the five tests and share anonymised counts and error types, not live transactions or customer data.

Book a 15-minute systems diagnosis →