Weird loop behaviour, You can try it yourself and see!

Hi, the loop is fed with the previous outputs data instead of the current comments that are passed directly to it !

Describe the problem/error/question

i have an array of comments and i need pass them one by one in order to insert to db and use the insertId record to insert the replies related to that comment and so one … as a test after its done i make th workflow loop again and start form the begenning but i got that weird error that instead of the loop input is a comment now its an array of the previous outputs of the inserts !!

only the first full loop iteration is being looped , the rest all goes DONE route

What is the error message (if any)?

no error message

Please share your workflow

this is an abstracted demonstration (example taken from my original workflow) , you can try it to see the weird result

Share the output returned by the last node

Information on your n8n setup

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

Hey @Mr_Developer , you need to reset the Loop node for each new data set you feed into it as explained in Loop Node Only Processes the First Item - How to Fix? - #12 by Jon.