# Compare Datasets node not working as expected

**URL:** <https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722>\
**Category:** Questions\
**Tags:** compare-datasets\
**Created:** [February 3, 2025, 8:48pm UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722 "2025-02-03T20:48:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Garrison](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/david_garrison/32/52752_2.png) [@David\_Garrison](https://community.n8n.io/u/David_Garrison)\
**Post date:** [February 3, 2025, 8:48pm UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722/1 "2025-02-03T20:48:16Z")

</div>

## Describe the problem/error/question

Hi everyone. I stood up n8n for the first time a couple of days ago and am hosting it in a Docker container on my Synology NAS. I’m either having an issue with, or a misunderstanding of, the Compare Datasets node.

I have a single element coming into the node on both the A branch and the B branch, but the node shows that all the values in A only exist in A and not B and that the values in B only exist in B. However, as you can see from the screenshot below, the same values in A are also in B and vice versa.

In the screenshot, the left side is the input from the A branch and the right side is showing what the node is indicating is only in the B branch. I annotated the screenshot to show that what’s in A is also in B and vice versa. There are a total of 29 values on both the A and B sides and I know for a fact that they are the same, but the node is showing otherwise.

Is this a bug in the Compare Datasets node or am I misunderstanding how it works?

 ![Screenshot 2025-02-03 at 12.17.22 PM](https://europe1.discourse-cdn.com/n8n/original/3X/c/8/c8f4c90d8c5b74ce31b1983223184f9ffd18a59f.png)

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

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version: 1.76.1**
- **Database: postgres**
- _n8n EXECUTIONS\_PROCESS setting : unknown_
- **Running n8n via : Docker**
- **Operating system: Synology DSM 7.2**

Thanks for your help

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 3, 2025, 8:48pm UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722/2 "2025-02-03T20:48:18Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **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:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [February 24, 2025, 1:56am UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722/3 "2025-02-24T01:56:49Z")

</div>

Here, and many other places in n8n, the node parameter is asking for the **name of something in the input, not the value of it.** Your expressions resolve to values of ID, but those parameters (`Input A Field`, `Input B Field`) need to be configured with the field **name** itself, literally “ID”, from each side. Here’s an example of how it is meant to work, if Input A had a field named “ID”, and Input B had a corresponding/compared field named “theId”.

---

<div class="post-metadata">

**Author:** ![David\_Garrison](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/david_garrison/32/52752_2.png) [@David\_Garrison](https://community.n8n.io/u/David_Garrison)\
**Post date:** [March 8, 2025, 11:23pm UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722/4 "2025-03-08T23:23:52Z")

</div>

Thanks, that makes sense.

David

---

<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:** [June 6, 2025, 11:24pm UTC](https://community.n8n.io/t/compare-datasets-node-not-working-as-expected/74722/5 "2025-06-06T23:24:10Z")

</div>

Closed on June 6, 2025, 11:24pm UTC

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