A skipped order number does not, on its own, prove that an order was deleted or lost. Some databases allocate a reference before the surrounding save succeeds, and that allocated value may never be reused. For a UAE business reconciling orders, the useful question is whether the expected business record exists and reached the correct state—not whether every integer appears in the list.

Original conceptual illustration, not a vendor screenshot or an actual ITZ client installation. Technical sources reviewed on 4 December 2026.

Separate the number from the business event

Consider a hypothetical sequence: order 501 saves successfully, a later attempt obtains 502 but fails, and the next successful order receives 503. That can be expected behaviour for a database sequence. It is different from a customer receiving a confirmed order that staff can no longer find.

Ask the developer which field you are looking at: an internal database ID, an order reference presented to customers or a separately controlled document number. Those fields may have different rules. Do not infer the number of successful orders from the largest ID.

ITZ’s custom software development service can help define record structures, business rules and acceptance checks. Request an order-numbering review with examples of the gap, the customer-facing confirmation and the reconciliation question your team needs to answer.

Know what your database promises

PostgreSQL’s sequence documentation explains that a value obtained with nextval is not reclaimed when the calling transaction aborts. Conflict-handling inserts can also consume values without creating a new row. Its ordinary sequence mechanism therefore does not promise gapless numbering. This is a PostgreSQL example; confirm the mechanism and version used by your application.

A database-generated ID is useful for identifying a record. It is not automatically a complete business register, evidence that work committed or a chronological completion log. Two concurrent requests can finish in a different order from the allocation of their numbers.

Investigate the business evidence before “fixing” the counter

  • Expected record: identify the customer request, external reference or import row that staff believe should exist.
  • Save outcome: distinguish validation failure, rollback, successful commit and a response lost after a successful save.
  • Visibility: check filters, archived states and access rules before concluding the record is absent.
  • Downstream work: verify whether dispatch, stock or notifications were expected and actually completed.
  • Audit evidence: connect the attempt and its outcome using safe request identifiers rather than reconstructing events from consecutive numbers.

The transaction-boundary guide covers the separate risk of an order saving without its related stock change. The status-history guide helps define useful investigation evidence.

Write an explicit numbering policy

Decide when a customer may see a permanent reference, how failed attempts are recorded and whether cancelled records remain visible with a status. If the business needs a separate controlled sequence, define its scope, allocation point, cancellation rules and concurrency requirements. Confirm specialised document requirements with the appropriate business owner before design; an internal order ID should not be assumed to meet every document-numbering rule.

PostgreSQL’s CREATE SEQUENCE notes describe the cost of alternatives that coordinate a counter with exclusive locking. A stricter numbering scheme can affect concurrent processing. Agree that trade-off instead of simply resetting a production sequence to close a cosmetic gap.

Test failures and concurrency with synthetic orders

In a test environment, exercise a successful save, rejected input, rolled-back save, conflict-handled duplicate and two overlapping submissions. Record the resulting IDs, stored business records and user messages. Confirm that reconciliation identifies missing business work without treating every unused reference as a lost order. Never renumber established records merely to make a list look continuous.

Review your order numbering rules

Discuss your current identifier design, confirmation timing and reconciliation evidence with ITZ Custom Software Development. Bring a redacted example and the rule staff expect so the review can distinguish a normal gap from a real workflow failure.

Review Your Order Numbering Rules