Loop Over Items node is being stopped after certain iterations

I’m running into an issue with my n8n workflow and could use some help. I have a loop_over_items node that’s only processing 8 items, but the data source (Reddit node) is returning 39 items. This is my first time using this node and could really use some help.

My current n8n version is 1.78.1, Self hosted via docker deployment,

Okay, I understand. If your loop is encountering an error at item number 10 out of 39, sharing the workflow here is a good idea! I can help you analyze it.

problem is in your Code node bro,

step 1: export all item in getAll: post
step 2: copy your code + the Data in step 1
step 3: paste it into A.I like GPT or Gemini or Grok
step 4: if it does not work may be, just may be problem is in your Mongo DB node

2 Likes

well I fixed it, the problem isn’t from from code or MongoDB node. It’s from the reddit node, Occasionally the reddit node doesn’t return any data as output thus causing the breakage. Once I have enabled ‘always output data’ option from the setting, It started to function as expected,

Great to hear that from you, hope we can keep in touch, and this suport.

Feel free to conect with my linkedin

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