Skip to main content

CSV join problem

Fix a CSV Join That Produces No Matches

Diagnose failed CSV joins by checking key types, whitespace, leading zeros, duplicates and normalization rules.

Use the matching tool

Join CSV Files

Open Join CSV Files

What the error actually means

A join matches exact key values unless normalization is applied. Keys that look identical in a spreadsheet can differ by leading zeros, hidden spaces, case, punctuation or data type. Cleaning must preserve the business meaning of the identifier.

Likely causes

  • One file lost leading zeros.
  • Keys contain trailing whitespace.
  • Text case or punctuation differs.
  • The selected columns are not the real shared identifier.

Key mismatch

Problem

00127 in one file and 127 in another

Correct pattern

Both keys preserved and normalized under a documented identifier rule

A safe repair workflow

  1. 1Profile unique keys and null rates in both files.
  2. 2Compare unmatched examples character by character.
  3. 3Normalize only differences known to be insignificant.
  4. 4Run the join and export unmatched keys separately.

How to verify the result

A file that downloads successfully is not automatically a correct file. Check the result at both the structural and business-data levels:

  • Match rate is plausible.
  • One-to-many matches are intentional.
  • Unmatched keys are retained for review.
  • Joined row counts reconcile with the join type.

Read the deeper guides