Steps
Everything in A only and B only? Check the key types
The most common cause in our runs: one side sends the id as a number (
1), the other as text ("1"), which is typical when one list comes from Google Sheets or a CSV and the other from a database. Nothing matched: all 3 A rows went to In A only, all 3 B rows to In B only, and the run was green with no warning. Turn on the top-level Fuzzy Compare toggle, or convert one side first (Edit Fields, or{{ String($json.id) }}). On node v2.3 Fuzzy Compare is a main setting: puttingfuzzyCompareunder Options, where the old v1 node had it, did nothing.Fuzzy Compare fixes types, not case or spaces
With Fuzzy Compare on,
1matched"1", andnullmatched""and a missing field, andtruematched"true". It did not help withANN@X.IOvsann@x.io, a trailing space, or10vs"10.00". Clean the key on both sides before the node:{{ $json.email.trim().toLowerCase() }}. Dates written differently ("2026-10-24"vs a full ISO timestamp) also counted as different, so normalise them first, for example withDateTime.fromISO($json.date).toISODate().Check the field names in Fields to Match
The boxes want the field name, typed exactly. A typo (
IDforid) gave no error and no matches. An expression such as={{ $json.id }}in Input A Field also matched nothing, because the node then looks for a field named after the value. Nested keys likeuser.idworked, unless Disable Dot Notation was on. Leaving Fields to Match empty is the only case that failed loudly:You need to define at least one pair of fields in "Fields to Match" to match on.Rows stuck in Different? Skip the fields that always differ
If one side has an extra field, such as an
updatedtimestamp from your sync, every matched row went to Different and Same was empty. Add it to Options > Fields to Skip Comparing: a list likeplan, updated(comma and space) worked. The same trap hits when the keys have different names: with Input A Fieldidand Input B Fieldcustomer_idthe rows paired, but landed in Different becauseidandcustomer_idwere compared as two fields. Rename one side first, or skip both.The Different output is a diff, not a normal row
With the default When There Are Differences: Include Both Versions, a changed row came out as
{keys, same, different: {plan: {inputA: "free", inputB: "pro"}}}, so an Update node after it finds noidorplanfield. Choose Use Input B Version (or A) to get a plain row, or Use a Mix of Versions to pick per field. The old v1 node returned the B version by default, which is why older tutorials and screenshots look different.Duplicates leak into B only
With the same id twice in B and the default Multiple Matches: Include First Match Only, the first copy was compared and the second copy went to In B only, so it looks like a new row. Include All Matches put both pairs in Different instead. A duplicate in A was paired twice with the same B row. Remove duplicates first if each key should appear once.
Empty outputs and odd keys
When the two lists had nothing in common, Same and Different were empty and the nodes after them simply did not run, with no error. If Input B returned 0 items, every A row went to A only. A row with no key field went to A only, and rows with a
nullkey on both sides were paired with each other and landed in Same. Arrays are compared in order:["a","b"]and["b","a"]were different.
What we ran
On 24 October 2026 we ran 40 executions on n8n 2.43.7 with n8n execute: a Manual Trigger, two Code nodes producing Input A and Input B, the Compare Datasets node v2.3 (one run on v1), and a No Op node on each of the four outputs (In A only, Same, Different, In B only).
| Setup | Result |
|---|---|
A ids 1,2,3, B ids 1,2,4, id 2 has a different plan (defaults) | A only [3], Same [1], Different [2] as a diff object, B only [4] |
A ids are numbers (1), B ids are strings ("1") | Nothing matched: all 3 A rows in A only, all 3 B rows in B only, green run, no warning |
Same, fuzzyCompare put inside Options (where v1 had it) | Ignored on v2.3: still nothing matched |
| Same, top-level Fuzzy Compare on | 1 = "1": A only [3], Same [1], Different [2], B only ["4"] |
Email case differs (ANN@X.IO), Fuzzy Compare off and on | No match either way |
| Trailing space in the B email | No match, no warning |
Input A Field id, Input B Field customer_id | Rows paired, but in Different: id and customer_id compared as different fields |
Input B Field typo ID (field is id) | No error; everything in A only and B only |
| Fields to Match left empty | Error (see below) |
B has an extra sync field updated | Every matched row in Different; Same empty |
Fields to Skip Comparing updated | id 1 back in Same; the skipped field listed under skipped |
Fields to Skip Comparing plan, updated (comma and space) | Both skipped; id 2 in Same too |
| When There Are Differences: Use Input B Version | Different gives the plain B row {id:2,plan:"pro"} |
| When There Are Differences: Use Input A Version | Different gives the plain A row |
Use a Mix of Versions, Prefer Input A, For Everything Except plan | {id:2,plan:"pro"}: plan taken from B |
| id 2 twice in B, Multiple Matches default (Include First Match Only) | First copy compared; the second copy goes to B only |
| Same, Multiple Matches: Include All Matches | Both pairs in Different (2 items); B only no longer has the copy |
| id 2 twice in A | Both A copies paired with the same B row: 2 items in Different |
Nested key user.id | Works (dot notation on by default) |
| Same, Disable Dot Notation on | Nothing matched |
id is null on both sides | The two null rows paired and landed in Same |
A row with no id field | Goes to A only, no error |
| Input B returns 0 items | Still runs: all A rows in A only, other outputs empty |
Two match fields (name + email) | Works |
Price 10 vs "10.00", Fuzzy Compare off and on | Different both times |
Price 10 vs "10", Fuzzy Compare on | Same |
null vs missing field | Different; Same with Fuzzy Compare |
null vs "" | Different; Same with Fuzzy Compare |
true vs "true" | Different; Same with Fuzzy Compare |
Arrays ["a","b"] vs ["b","a"] | Different: order matters |
"2026-10-24" vs "2026-10-24T00:00:00.000Z" | Different |
| Compare Datasets v1, defaults | Different gives the B version {id:2,plan:"pro"}, not a diff |
Expression ={{ $json.id }} in Input A Field | Nothing matched: everything in A only and B only |
| Nothing in common (A id 9, B id 8) | A only [9], B only [8]; Same and Different empty, nodes after them don't run |
Quick checklist
- Everything in A only and B only? Compare the key types; turn on Fuzzy Compare or convert one side.
- Still no match? Trim and lowercase the keys, and check the field name for typos. Type the name, not an expression.
- All matches in Different? Add sync fields and differently named keys to Fields to Skip Comparing.
- Next node can't find your fields? Set When There Are Differences to Use Input B Version (or A).
- "New" rows that are really duplicates? Deduplicate first or use Include All Matches.
Good to know
- Joining two lists instead of comparing them? See n8n Merge node not working. Only want items you haven't seen in earlier runs? See Remove Duplicates across executions. Cleaning keys before comparing: Edit Fields (Set) node. Comparing dates: n8n timezone and dates.
- Every error message we reproduced is in the n8n error message index.
What we didn't test
- The editor UI itself (we ran workflows from JSON), n8n Cloud, real Google Sheets or database nodes as inputs (we used Code nodes with the same data shapes), and large datasets.
Start from a working agent
FAQ
Why does n8n Compare Datasets put everything in "In A only" and "In B only"?
In our runs the usual cause was a type mismatch: the id was a number on one side and text on the other. Case differences, trailing spaces, a typo in the field name or an expression in the field box gave the same result. The node shows no warning. Turn on Fuzzy Compare for type differences and clean the keys for the rest.
What does Fuzzy Compare do in n8n Compare Datasets?
It ignores type differences: 1 matched "1", null matched "" and a missing field, and true matched "true". It does not ignore case, spaces, or 10 vs "10.00". On node v2.3 it is a main setting, not an option.
Why does every matched row go to the Different output?
A field that always differs, such as an updated timestamp from your sync, or keys with different names on each side. Add those fields to Options > Fields to Skip Comparing.
How do I get normal rows from the Different output?
Set When There Are Differences to Use Input B Version or Use Input A Version. The default, Include Both Versions, outputs a diff object with keys, same and different instead of the row fields.
What does 'You need to define at least one pair of fields in "Fields to Match" to match on' mean?
Fields to Match is empty. Add at least one pair: the key field name in Input A and the key field name in Input B.
Related guides
- n8n Switch node not working: missing items, wrong output and type errors, 30 runs
- n8n Remove Duplicates not working: missing field, history size, 63 runs
- n8n Edit Fields (Set) node not working: dropped fields, type errors and invalid JSON, 29 runs
- n8n Date & Time node not working: Invalid date format, wrong day and lost fields, 41 runs
- n8n Notion node not working: "API token is invalid.", data source and 404 fixes
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes