# Compare datasets node broken?

**URL:** <https://community.n8n.io/t/compare-datasets-node-broken/145270>\
**Category:** Questions\
**Tags:** node, compare-datasets\
**Created:** [July 7, 2025, 1:36pm UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270 "2025-07-07T13:36:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonTSG](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JonTSG](https://community.n8n.io/u/JonTSG)\
**Post date:** [July 7, 2025, 1:36pm UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270/1 "2025-07-07T13:36:24Z")

</div>

## Describe the problem/error/question

I have two different “Get rows in sheets” operations that pull in data from google sheets. I can confirm that the data from input A appears in input B. But for some reason, when the compare datasets node SHOULD show me that all 232 items from Input A appear in Input B, it shows me all 232 items in Input A ONLY appear in Input A, and Input B’s items all ONLY appear in Input B. It makes no sense, I show you in the loom examples that prove this shouldn’t be.

Loom: [Troubleshooting Data Output Issues in Workflow Setup 🔧 | Loom](https://www.loom.com/share/e4d706f5fa284253b82b5bde0f4937ac?sid=c6a9d994-e57e-420e-bdbc-1a02cfc2c221)

## What is the error message (if any)?

## Please share your workflow

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![702ron](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/702ron/32/87790_2.png) [@702ron](https://community.n8n.io/u/702ron)\
**Post date:** [July 7, 2025, 6:03pm UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270/2 "2025-07-07T18:03:56Z")

</div>

Hello. The compare datasets node needs the field name, not the value, as the input. You can just use plain text for the name of the field, or change the input to “fixed” and drag the field in from the previous execution, it will populate correctly.

You also will likely need to add any fields that are not these 2 fields to the “Fields to Skip Comparing” in the compare datasets node, or it will try and compare everything as a whole and consider them different. Again, field names in plain text, not the value of the field.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![withabdul](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/withabdul/32/179439_2.png) [@withabdul](https://community.n8n.io/u/withabdul)\
**Post date:** [July 8, 2025, 4:24am UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270/3 "2025-07-08T04:24:07Z")

</div>

Hi there, welcome to community!

According to your case, instead of using `{{ $json['delete these'] }}`, you can just pass the column that you want, in ur case `delete these` in Input A. And in Input B, you can do the same thing, change from `{{ $json['Column C'] }}` to `Column C`.

Hopefully it will work! And if it helps, kindly mark my message as solution, thanks!

---

<div class="post-metadata">

**Author:** ![JonTSG](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JonTSG](https://community.n8n.io/u/JonTSG)\
**Post date:** [July 9, 2025, 11:38am UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270/4 "2025-07-09T11:38:12Z")

</div>

Thank you!! That worked.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [July 16, 2025, 11:38am UTC](https://community.n8n.io/t/compare-datasets-node-broken/145270/5 "2025-07-16T11:38:49Z")

</div>

Closed on July 16, 2025, 11:38am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
