Systems and records
Business dataset join identifier collisions: test the key, not the row
By SourceX Editorial · Reviewed by Noah Loul ·
10 sections
Short answer
Before joining business histories, test each candidate key for identifier collisions, where one value belongs to several entities, and splits, where one entity carries several values. Measure both rates and the share of records they touch, find collisions through contradictions, time gaps and planted test cases, and quarantine the specific ambiguous values with a reason code. Then confirm quarantine has not stripped out one segment or period.
Record timeline
Business dataset join
Key takeaways
- An exact-match key is only as exact as its history: case folding, re-keying, merges and reuse each turn one value into two entities or one entity into two values.
- Profile every candidate key with four numbers, value collision rate, split rate, record exposure and join fan-out, each with its denominator and per period.
- Without a true crosswalk, find collisions through attribute contradictions, time gaps and cross-namespace overlap, and measure the tests' recall with planted collisions.
- Quarantine ambiguous values rather than whole histories, with a reason code and the records each value touches.
- Quarantine is a selection step: check that what it removes is not concentrated in one segment or period before releasing the joined set.
What is a join identifier collision in a business dataset?
A join identifier collision happens when one key value refers to two or more real entities, so a join stitches unrelated histories into one. Its mirror image is a split, where one entity carries several key values and its history breaks into fragments. Neither shows up in a row count, and both change what a model learns from the joined records.
Epidemiologists have named the same two failures for linked records. Doidge and Harron's 2019 review of linkage error bias in the International Journal of Epidemiology notes that when units cannot be uniquely identified without linkage, linkage errors can split one unit's records or merge several units into one, and that splitting and merging can cause both information bias and selection bias. In business data the units are customers, vendors, assets, products and cases rather than patients, but the mechanics carry over.
This page covers deterministic keys that look exact: customer numbers, record IDs, issue keys, product codes and phone numbers. Probabilistic matching across systems and the safety of pseudonymized keys are separate problems with their own tests. The question here comes first and is narrower: before any join, is this key safe to join on, for which values and for which period?
Five documented ways an exact key stops being exact
Keys fail for mechanical reasons that the systems' own documentation describes, and each reason leaves a signal a test can look for. The five below come from vendor documentation or from the bodies that administer the identifiers.
Case folding. Salesforce treats its 15-character record IDs as case-sensitive and provides a CASESAFEID function that converts one into an 18-character ID that is case-insensitive. Two 15-character IDs that differ only in letter case are different records, so loading them into a tool or column that ignores case can make them collide.
Re-keying. Atlassian's migration guidance says a Jira work item's key changes when it moves to another project or the project is renamed, and that Jira reserves the earlier keys so old links still resolve. An export taken before the move and one taken after carry different keys for the same item.
Merging. HubSpot's help center says that, outside a beta that preserves the primary record's ID, merging two records creates a new record ID for the result, while a Merged record IDs property lists the IDs folded into it. A history joined on an ID captured before the merge points at a number that no longer names a live record.
Reuse over time. GS1's rule against reallocating GTINs took effect on 1 January 2019 and deprecated the older 48-month reuse rules, so product histories that span that date can hold one code for two items. Phone numbers recycle at far larger scale: the FCC's 2018 order establishing a reassigned numbers database put the figure at about 35 million numbers disconnected and made available for reassignment each year.
Duplicate registration. In the Global LEI System, when two registrations turn out to cover the same legal entity, the non-surviving one is given the status DUPLICATE. The record carries a status that says what it is, which is the habit a business dataset should copy.
The table sets out what each mechanism does to a join and the signal that exposes it:
| Mechanism | What the join does wrong | Signal a test can see | Usual fix |
|---|---|---|---|
| Case folding: 15-character Salesforce IDs in a case-insensitive store | Merges two records into one | Distinct IDs that become equal after lowercasing | Join on the 18-character case-safe ID |
| Re-keying: a Jira item moved or a project renamed | Splits one item across two keys | Key history entries, old keys that still resolve | Map every key to the item's stable internal ID |
| Merging: two HubSpot records combined | Leaves joins pointing at a retired ID | IDs listed in a merged-IDs property | Build a crosswalk from retired to surviving IDs |
| Reuse over time: pre-2019 GTINs, reassigned phone numbers | Merges an old entity with a new one | Attributes change after a dormant gap | Scope the key with a validity window |
| Duplicate registration: LEI status DUPLICATE | Splits one entity across two keys | A status flag on the non-surviving record | Map the duplicate to the surviving key as an alias |
Four numbers to measure before trusting a key
Profile each candidate key on a frozen extract with four measures, each with a stated numerator and denominator so anyone can recompute it. A key that looks clean on one measure can fail another: a handful of colliding values can reach a large share of records when they belong to busy accounts.
Report every measure per source system and per period rather than as one pooled figure. A key that is clean after a migration and dirty before it should be scoped, not thrown away, and only a per-period profile shows the difference.
| Measure | Numerator | Denominator | What it catches |
|---|---|---|---|
| Value collision rate | Key values linked to two or more entities | Distinct key values observed | Merges that a uniqueness constraint never flags |
| Split rate | Entities carrying two or more key values | Distinct entities, resolved through a stable attribute | Histories broken by re-keying, merges or duplicates |
| Record exposure | Records carrying a colliding or split value | All records in the extract | Whether a few bad values reach many rows |
| Join fan-out | Rows after the join | Rows before the join, where one-to-one was expected | Silent many-to-many joins |
Finding collisions when nobody holds the true crosswalk
Collisions are found by contradiction, because businesses rarely keep a list of the entities behind each key. A test that finds little may simply be blind, so measure how much it misses as well as what it finds.
Four tests do most of the work, and the last one measures the other three:
- Attribute contradiction: one key value with incompatible stable attributes in the same period, such as two legal names, two tax registrations or two countries.
- Temporal discontinuity: a key that goes quiet and returns with different attributes, the signature of reuse after a gap.
- Cross-namespace overlap: the same value issued by two systems or two company entities that number independently, such as invoice numbers that restarted in an acquired business.
- Planted collisions: copy the extract, deliberately give a known sample of distinct entities shared values, run the first three tests and count how many plants they catch. That share is the detector's recall, and it belongs in the dataset documentation next to the collision rate, because a low collision rate from a detector with poor recall proves little.
Quarantine the ambiguous value, not the whole history
When a key value fails a test and the records at hand cannot resolve it, move that value into a quarantine table, not the rows or the customer, and cut any history that depends on it at the ambiguous segment with an explicit gap marker. The rest of the history still joins on its clean values.
At a glance
Quarantine the ambiguous value, not the whole history
The LEI practice is the model: a duplicate is labeled with a status instead of being silently replaced. A quarantine table does the same for business keys, so a reviewer can always see what was held back and why.
Each quarantined value needs these fields:
- key_value and namespace: the system, company entity or project that issued it.
- reason_code: contradiction, reuse after a gap, case fold, unresolved merge or cross-namespace overlap.
- first_seen and last_seen for each conflicting entity, as far as the records can tell them apart.
- records_touched: the count and the record IDs that carry the value.
- resolution: open, resolved to one entity, split by date or withheld for good, with who decided and on what evidence.
An annotated task packet: one account's renewal history across four systems
A minimal task packet for a joined history lists each element, the key that brought it in and that key's status, so a model or a reviewer can see which parts of the story rest on a doubtful join. The case is illustrative and describes no real company.
The task is to explain why a mid-market software customer renewed at a lower tier. Its history sits in four places: a legacy Salesforce org used until a 2022 migration, the HubSpot portal that replaced it, a Jira project for escalations that was later moved and renamed, and a phone system's call logs keyed by caller number. The legacy account ID was first exported in its 15-character form into a warehouse column that ignores case.
Six elements were considered for the packet; one was quarantined:
| Packet element | Join key and route | Key status | Annotation |
|---|---|---|---|
| Pre-migration opportunities, 2019 to 2022 | Legacy account ID, re-exported in 18-character form | Admitted after case-safe re-export | The case-folded column had paired this account with another; the 18-character ID separates them |
| Post-migration deals and notes | HubSpot record ID through the merged-IDs crosswalk | Admitted through crosswalk | Two company records merged in 2023; the surviving ID carries both histories |
| Escalations | Jira key history mapped to the stable issue ID | Admitted after re-keying map | Three escalations appear under old and new keys and are counted once each |
| Calls before 2021 | Caller phone number | Quarantined | The number goes quiet, then returns under a new company name: the signature of reuse |
| Calls from 2021 | Caller phone number plus a HubSpot contact match | Admitted, scoped to the period | Validity window starts at the first matched contact |
| Renewal decision and tier change | HubSpot deal ID | Admitted on a clean key | The outcome the task asks about |
Context completeness map: what the joined history can and cannot say
The completeness map turns the packet's key statuses into counts and limits a buyer can check. For the illustrative account, 1,420 source records were candidates; the table shows how many joined on a clean key, how many needed a crosswalk or scoped key, how many sit in quarantine and how many matched nothing.
Two limits follow. All 52 quarantined calls predate 2021, so the packet cannot say whether the customer phoned support in its early years, and the gap is recorded rather than filled. And 386 records, about 27 percent, depend on a crosswalk or a scoped key, which makes the crosswalks part of the delivery and something the buyer's acceptance test must check.
| Source (illustrative) | Clean key | Crosswalk or scoped key | Quarantined | No match |
|---|---|---|---|---|
| Legacy CRM records, 400 | 340 | 48 | 4 | 8 |
| HubSpot records, 600 | 512 | 74 | 0 | 14 |
| Jira escalations, 120 | 78 | 38 | 0 | 4 |
| Call logs, 300 | 0 | 226 | 52 | 22 |
Does quarantine distort the dataset more than the collisions did?
It can, and that is the strongest objection to this approach. Quarantine is a selection step, and what it removes is not random: reused phone numbers cluster in older records, case-fold collisions cluster in systems that were migrated, and contradiction tests fire more often on large accounts with many contacts. A dataset that drops them silently overrepresents recent, small and simple histories.
The opposite instinct, joining more records to fill the gaps, commits the other error. Every extra join on a weak key adds a chance of merging two entities, and Doidge and Harron's framework counts merges and splits as sources of both information and selection bias. More joined records can raise noise and linkage risk without helping the task the packet exists for.
A quarantine balance check settles which error is larger:
- Compare the quarantined share of records across the segments that matter for the task: period, account size, region and source system.
- Where the share is concentrated, state the coverage limit in the dataset card, such as missing phone contact before 2021, so a model does not read silence as no contact.
- Where one segment loses a large share, try a stronger scoped key for that segment before quarantining more.
- Resolve a small sample of quarantined values by hand and rerun the task metric with and without them, to see whether the exclusions change the answer.
Admit, scope, quarantine or reject: the call for each key
Decide at the level of the key first and its values second, and write the thresholds down before profiling so a result cannot be argued into a pass. The thresholds are the buyer's to set; the structure below is a starting point, and any number attached to it should be labeled as the buyer's choice.
At a glance
Admit, scope, quarantine or reject: the call for each key
Even an admitted key has a blind spot: the tests see only contradictions the extract can express, so two companies with the same name, country and tax status pass untouched. The next evidence to collect is a hand-reviewed sample of admitted joins, which estimates the false-merge rate the automated tests could not see.
Four outcomes cover the keys:
- Admit the key when collision and split rates are near zero in every period and system, record exposure is negligible and planted-collision recall is high enough to trust the zeros.
- Scope the key when failures concentrate in one namespace or period: add the namespace or a validity window to the key and profile it again.
- Quarantine values when a scoped key is clean except for specific values that contradict themselves; hold those values with reason codes and cut the histories they touch.
- Reject the key when collisions spread across values and periods, or exposure stays high after scoping, and look for another key or a crosswalk the source system already keeps.
Asking for key profiles when you request joined histories
A buyer who plans to join business histories can ask for the key profile up front: per key, per system and per period, the four measures, the planted-collision recall, the quarantine table with reason codes and every crosswalk used. An acceptance test can then recompute the measures from the delivered files instead of trusting a summary.
SourceX works from buyer requests rather than a catalog, so a request that names the keys and the profile it expects shapes what gets prepared. Preparation sits inside the licensing work SourceX does for the companies that hold the records, next to qualifying the data, reviewing rights and contracting. Identifier work raises privacy questions of its own, since phone numbers, email addresses and contact names are personal data, so the request should say whether scoped surrogate keys can stand in for them.
Frequently asked questions
What is the difference between an identifier collision and a duplicate record?
A collision is one key value shared by two real entities, so a join merges their histories. A duplicate is one entity recorded twice, often under two key values, so its history splits. They need opposite fixes: a collision is separated or scoped, while a duplicate is mapped to one surviving key.
Is a collision rate of zero enough to trust a key?
No. A zero only means the tests found nothing, and contradiction tests miss entities whose attributes happen to agree. Measure the tests' recall with planted collisions and profile the key per period and system, because a pooled zero can hide a dirty period before a migration.
Should ambiguous matches be deleted or kept?
Kept, in a quarantine table with a reason code, the records each value touches and a resolution status. Deleting them hides a selection step and makes it impossible to check later whether the exclusions removed one segment or period.
Why convert Salesforce 15-character IDs before joining?
Salesforce treats 15-character IDs as case-sensitive, so two IDs that differ only in letter case are different records. Spreadsheets, warehouses and join tools that ignore case can treat them as one. The 18-character form produced by CASESAFEID is case-insensitive and safe to join on.
How do reassigned phone numbers affect customer histories?
A phone number can belong to one customer for years and to another after reassignment; the FCC's 2018 order estimated about 35 million numbers are disconnected and made available for reassignment each year. Join on phone numbers only within a validity window confirmed by another attribute, and quarantine calls outside it.
Sources
- Doidge and Harron (2019) describe how, when units cannot be uniquely identified without linkage, linkage errors can split or merge units, and that splitting and merging can cause information bias and selection bias. Source
- Salesforce's CASESAFEID function converts a case-sensitive 15-character record ID into a case-insensitive 18-character ID. Source
- Atlassian says Jira work item keys change when an item moves to another project or the project is renamed, and Jira reserves historical keys so old links still work. Source
- HubSpot says merging records creates a new record ID for the merged record unless the account uses the primary ID preservation beta, and a Merged record IDs property lists the IDs merged into a record. Source
- GS1's GTIN non-reuse rule took effect on 1 January 2019 and deprecated the earlier 48-month GTIN reuse rules. Source
- The FCC's 2018 order on a reassigned numbers database states that approximately 35 million numbers are disconnected and made available for reassignment each year. Source
- GLEIF's LEI-CDF format defines the DUPLICATE status as assigned to the non-surviving registration when two LEI registrations cover the same legal entity. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.