# Node Datasets does not validate different data

**URL:** <https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221>\
**Category:** Questions\
**Tags:** compare-datasets\
**Created:** [October 30, 2023, 1:01pm UTC](https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221 "2023-10-30T13:01:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leomangueira](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/leomangueira/32/114209_2.png) [@leomangueira](https://community.n8n.io/u/leomangueira)\
**Post date:** [October 30, 2023, 1:01pm UTC](https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221/1 "2023-10-30T13:01:43Z")

</div>

in input A some fields return as undefined and in input B it contains all the fields, I need to compare the 2 inputs so I know which code exists in input B but in input A it returns as undefined, I tested several options in the compare datasets node but None of them return data that is different between the inputs, did I do something wrong?  
**versão 1.14.2**

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/6/5620a779d78aa3ca03396f5f772813aac0d1512d.png)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [October 31, 2023, 4:12pm UTC](https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221/3 "2023-10-31T16:12:23Z")

</div>

Hey @leomangueira,

When I update the example to use a code node so I can work with both items it seems to work as expected, Can you share some of the json output from both inputs that you are using?

---

<div class="post-metadata">

**Author:** ![leomangueira](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/leomangueira/32/114209_2.png) [@leomangueira](https://community.n8n.io/u/leomangueira)\
**Post date:** [October 31, 2023, 7:30pm UTC](https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221/4 "2023-10-31T19:30:15Z")

</div>

I managed to do the validation another way and had to treat the [undefined] data in my custom node code.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/1/4/14014976fffd7ebe421b9313045b61b0b1a3ae49.png)

---

<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:** [November 7, 2023, 7:30pm UTC](https://community.n8n.io/t/node-datasets-does-not-validate-different-data/32221/5 "2023-11-07T19:30:28Z")

</div>

Closed on November 7, 2023, 7:30pm UTC

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