Struggling with "Cant determine which item to use "

Hi, I am unsure how should i handle these errors constantly in my workflow. Im a newbie and whenever i have more items returnign from any item lets say in this case from the code node it is giving me an array of 3 arrays. And in supabase i need to map it to an array column the entire array. now it says cant determine. when i use first() instead of item it will only work on first one every time. is there a detailed video available on this? And in my other case i still am stuck with this issue


Same issue in nextimage


where i have 40+ items returnning how should i reference that ? if i select first() it will only fetch the first. pls guide.

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:
  • n8n version: 1.59.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: window

hello @Bisma_Majeed

That’s happening because the nodes in the chain have different amount of outputted items. I see that the node All Comments to string and array will always output 1 item, so you can use the $('nodename').first().json property. otherwise it will depend on what are you trying to achive and maybe you will need a sub-workflow or Loop node to work within one item in a row