Loop stops after running twice

My work flow stops after successfully runing twice i am unable to find out the reason

Here is my work flow

hello @Mohammed_Yasir

That’s because nested loops won’t work this way. Better to not use it as it’s too complicated. Instead, use a sub-workflow.

But in your case I would simply remove the nested two loop nodes as they do nothing.

I did what you said, same reasult it runs 2 time successfully then stops

I tried your workflow. With the very first input Filter has discarded all items and workflow stopped as no output was produced. This is a documented feature.

One thing is that this


is a pretty unconventional usage of the second condition to match.

Just in case you need to proceed despite no data available you can turn this option on.

This will produce an empty item so that workflow doesn’t get terminated.
Obviously you may want to handle this situation so that it doesn’t break your process.

Your workflow may contain other logical mistakes. Use workflow executions tab to see what’s going on in your workflow.

If this resolves your question , please mark this post as a :white_check_mark: Solution.

1 Like

Your recommandation didnt resolve the issue

I am sorry about that.

Although you need to provide more information than that, if you need help from the community meaning peer n8n enthusiasts. There is no way for e.g. me to see what’s going on in your workflow and what the executions log tells.

@Mohammed_Yasir

try this one

as @Olek mentioned, it’s hard to say what’s wrong exactly without the samples or outputs

1 Like

Thanks for the solution it was the nested loop issue. So i used your provided workflow and it worked like a charm.

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