top of page

Why a Customer Identifier Should Not Automatically Become a Number

Oct 22
3 min read
Identifier handling checklist: preserve the original token, avoid numeric conversion, and compare after every boundary.

A customer reference arrives as 000731. After an export and a spreadsheet review, it becomes 731. Every row may still be present, yet the reference no longer matches the system that issued it. The error began when a label was treated as a quantity.


Before choosing a data type, ask whether arithmetic on the value has business meaning. Adding two customer references is normally meaningless. Preserving the exact token, including significant zeros and letters, is often the real requirement.


Distinguish identity from quantity


A quantity answers “how many?” or “how much?” An identifier answers “which one?” Some identifiers contain only digits, but their appearance does not make numeric conversion safe.


RFC 8259's section on numbers does not permit leading zeros in JSON numbers and notes that implementations can limit numeric precision. Its interoperability guidance identifies a finite range of exactly agreed integer values for commonly used binary64 implementations. A digit-only label therefore needs an explicit contract rather than an assumption that every system will preserve it as a number.


This does not mean changing every existing numeric database key to text. It means preserving the type and constraints of the issuing system, and avoiding unapproved transformations between systems.


Trace the complete route


List each place the identifier crosses a boundary: source application, API response, integration tool, spreadsheet, review form, database and outbound file. Include the human review step. A correctly typed API can still be undermined by a spreadsheet's automatic formatting.


For each boundary, ask how the value is read, stored, displayed and exported. Scientific notation in a display may be only presentation, or it may signal a conversion that has already lost precision. Inspect the actual stored and exported value before deciding.


Keep a stable internal reference to the original source record where possible. A display label should not become the only link between systems.


Create a preservation test set


Use synthetic examples that exercise the rules your actual identifiers permit:


  • A code beginning with several zeros.

  • A long sequence of digits near the limits of a receiving tool.

  • A code containing letters or a hyphen.

  • Two codes that differ only in a final character.

  • A value with accidental surrounding whitespace.


Decide in advance whether case and surrounding whitespace are significant. Never lowercase or trim all identifiers just because doing so helps ordinary search. Some systems define exact matching, and others define their own normalization.


Where a contract accepts only a fixed pattern, report invalid input rather than inventing a corrected identifier. A guessed repair can attach work to the wrong customer.


Use an illustrative round-trip check


Consider three fictional references: 000731, 000732 and AB-0731. Export them from a test source, pass them through the real review route and import them into a disposable destination. Export them again.


Compare the resulting strings with the originals character for character under the agreed rules. Record whether the test passed at each boundary. If the first export is correct but the reviewed file is wrong, investigate the review tool before changing the destination integration.


Also test a lookup using the final identifier. A visually matching value that cannot retrieve the intended record is not a successful transfer. Conversely, a forgiving search result does not prove that the exact identifier was preserved.


Avoid repairs that hide the cause


Adding zeros afterward is safe only when the issuing contract defines an exact width and the original information is recoverable. Padding an unknown identifier to an arbitrary length can produce a plausible but incorrect reference.


If a long number was rounded, converting the rounded result back to text will not restore lost digits. Retrieve the original from the authoritative source. Quarantine the affected records so later updates cannot compound the mistake.


Keep the repair decision separate from the permanent fix. The permanent fix should prevent the unwanted conversion at the boundary where it occurs.


Make preservation part of acceptance


A useful acceptance statement is: “Every allowed reference in the test set survives the complete route and retrieves its original source record.” Specify the test set and any permitted normalization with that statement.


Extend the CSV reconciliation checklist with exact identifier comparisons. Row counts alone will not reveal an identifier that changed while its row remained present.


Explore FutureOS


For the project's published context, read Getting started with FutureOS. Its introduction describes FutureOS as being in prelaunch. This guide presents general planning practices, not a claim that FutureOS currently provides the workflow described here.


Prepared with AI assistance. Sources checked on October 22, 2026. Examples identified as illustrative are not customer results; no independent editorial review is claimed.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page