What Is a UUID?
Understand UUID format and versions. Learn when to keep an ID, when to generate one, and how to check an import for lost or duplicate identities.

Use a UUID to identify a record across systems
A UUID is a 128-bit identifier with a standard text representation. Systems use UUIDs when different services or imports need to refer to the same record. The choice of how to issue and preserve that ID is as important as making a correctly formatted value.
Choose a version by the system requirement
| Choice | Consider it when | Verify first |
|---|---|---|
| UUID v4 | Independent components need random IDs | An appropriate generator and database uniqueness constraints are in place |
| UUID v7 | The system needs time-ordered IDs as defined by its design | The storage engine, clock assumptions and implementation requirements have been reviewed |
| Existing external ID | A source system already owns the identity | The value is stable and unique within its namespace |
An ID valid in one system may not be the field the downstream system uses as a primary key. Document the relationship before moving from one scheme to another.
Work through an import that runs twice
Suppose a feed contains three source records A01, A02, and A03. On the first run your application assigns a UUID to each and stores the source-to-UUID mapping. On the second run the third source record changes status, but its source ID is the same. Look up its existing UUID and update the record under the agreed policy. Generating a fresh UUID each time can turn the same source record into a duplicate.
Keep references across export and import
In a test export, count source records and check how many distinct identities the contract expects. Inspect whether child rows refer to the correct parent ID. Give failures distinct names: invalid format, unexpected duplicate and unresolved reference. These point to different fixes even when they appear in the same import report.
Separate identity from security
An ID says which record to look up. Access control says who can see it or change it. Keep those decisions separate. If a workflow needs a secret token, follow the application's approved mechanism rather than treating a UUID value as a secret.
Questions about UUIDs
Can a UUID serve as a useful test fixture value? Yes, when the fixture documents whether it represents a stable reference or a newly created record.
Does a UUID have to be case-sensitive in this representation? Apply your destination's parsing and normalization rules consistently. Preserve exact values when comparing a source record to its export.
Test the record flow with a synthetic identifier
Generate a v4 value for a harmless fixture when the contract allows it. Import once, repeat the import and verify whether the destination updates or duplicates the record as intended. Check what the system actually stores.
Use a v4 UUID for a disposable test record when the receiving schema accepts that version.

