// guides · n8n error index

n8n Compare Datasets not working: everything in A only, no matches and fixes, 40 runs

Fix the n8n Compare Datasets node: every row in "In A only" and "In B only" because of string vs number ids, case or spaces, rows stuck in Different because of a sync field, the diff object in the Different output, and duplicates. 40 real runs on n8n 2.43.7.

Updated 2026-10-24 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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: putting fuzzyCompare under Options, where the old v1 node had it, did nothing.

  2. Fuzzy Compare fixes types, not case or spaces

    With Fuzzy Compare on, 1 matched "1", and null matched "" and a missing field, and true matched "true". It did not help with ANN@X.IO vs ann@x.io, a trailing space, or 10 vs "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 with DateTime.fromISO($json.date).toISODate().

  3. Check the field names in Fields to Match

    The boxes want the field name, typed exactly. A typo (ID for id) 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 like user.id worked, 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.

  4. Rows stuck in Different? Skip the fields that always differ

    If one side has an extra field, such as an updated timestamp from your sync, every matched row went to Different and Same was empty. Add it to Options > Fields to Skip Comparing: a list like plan, updated (comma and space) worked. The same trap hits when the keys have different names: with Input A Field id and Input B Field customer_id the rows paired, but landed in Different because id and customer_id were compared as two fields. Rename one side first, or skip both.

  5. 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 no id or plan field. 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.

  6. 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.

  7. 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 null key 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).

SetupResult
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 on1 = "1": A only [3], Same [1], Different [2], B only ["4"]
Email case differs (ANN@X.IO), Fuzzy Compare off and onNo match either way
Trailing space in the B emailNo match, no warning
Input A Field id, Input B Field customer_idRows 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 emptyError (see below)
B has an extra sync field updatedEvery matched row in Different; Same empty
Fields to Skip Comparing updatedid 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 VersionDifferent gives the plain B row {id:2,plan:"pro"}
When There Are Differences: Use Input A VersionDifferent 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 MatchesBoth pairs in Different (2 items); B only no longer has the copy
id 2 twice in ABoth A copies paired with the same B row: 2 items in Different
Nested key user.idWorks (dot notation on by default)
Same, Disable Dot Notation onNothing matched
id is null on both sidesThe two null rows paired and landed in Same
A row with no id fieldGoes to A only, no error
Input B returns 0 itemsStill 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 onDifferent both times
Price 10 vs "10", Fuzzy Compare onSame
null vs missing fieldDifferent; 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, defaultsDifferent gives the B version {id:2,plan:"pro"}, not a diff
Expression ={{ $json.id }} in Input A FieldNothing 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

Good to know

What we didn't test

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.