# Check rows

**URL:** <https://community.n8n.io/t/check-rows/77960>\
**Category:** Questions\
**Tags:** ai-kapa\
**Created:** [February 14, 2025, 10:54am UTC](https://community.n8n.io/t/check-rows/77960 "2025-02-14T10:54:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-aera](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@tom-aera](https://community.n8n.io/u/tom-aera)\
**Post date:** [February 14, 2025, 10:54am UTC](https://community.n8n.io/t/check-rows/77960/1 "2025-02-14T10:54:39Z")

</div>

hi, here you can see my current RAG workflow.

this is so get a huge amount of sharepoint data in supabase for the first time.

problem:

- i want to add a ‘file id check’ to prevent duplicates. in case the flow fails and i wouldn’t be able to see what was already added. but i can’t figure out how to intelligently do this.

what I tried:

- i went with the supabase ‘get rows’ node before the 'Set File Information

node, filtered by the file\_id in the metadata, and set up a filter that if it exists, the file should not be included. but when i did that, the rest of the workflow used the supabase info, not the info we actually need for extraction etc.

- i experimented with the merge node but that was just messy and didn’t help

basically i just want to use it as a criterium, but currently in replaces the actual data

how would you guys do this? thank you

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/5/05454d985d128cb264f18fbd1d8f9c087d2d298f.png)

---

<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 14, 2025, 10:54am UTC](https://community.n8n.io/t/check-rows/77960/2 "2025-02-14T10:54:41Z")

</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:** ![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:** [May 19, 2025, 9:11am UTC](https://community.n8n.io/t/check-rows/77960/4 "2025-05-19T09:11:15Z")

</div>

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