If statement looping over static list: No data found for item-index: "1" [item 1]

Describe the problem/error/question

I dont know why this is so hard but I want to check if a unique id exists in a list or array. I get what is happening in that the if node is running for each input item which in my case is 50 property listings which means 50 id’s and its trying to apply that same loop to get another array even though there isnt one but I cant seem to figure out what the correct approach is to keep that list or array static. This is likely a fundamental flow issue but I am new to n8n.

What is the error message (if any)?

Problem in node “if”: No data found for item-index: “1” [item 1]

Please share your workflow

Information on your n8n setup

  • n8n version: latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system:

Hi @djsymo
Welcome to the community
Don’t worry, you can easily solve this problem using the map function. I’ll attach a screenshot to help guide you through it — please try this and feel free to ask if you get stuck.

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