Why does my Loop node not execute the "Done" branch sometimes? (Workflow continues without error)

Hi everyone,

I’m encountering a strange issue with a Looping node in my workflow. Most of the time, it works perfectly, but sometimes it seems to “finish” without actually executing the nodes connected to the “Done” output. The workflow itself completes without any errors, but the final steps that should run after the loop are skipped.

I’ve checked the execution logs, and it appears the loop processes all the items, but the “Done” branch is simply not triggered in these specific instances.

Has anyone experienced this before? I’m trying to understand what could cause the “Done” branch to be skipped intermittently.

Things I’ve already checked:

  • There are no “Continue on Fail” settings within the loop that might be causing an early exit.
  • The nodes within the loop appear to be outputting data for each item.
  • I’m not intentionally ending the workflow within the loop.

It always works if I trigger manually. Only on schedule, the problem occurs.

n8n Version 1.101.1

Could it be that the issue is more related to the Basic LLM node, which didn’t produce the next output, which in turn would take the flow back to the Loop node?

1 Like

Yes this might be… started with 4 items, but only 2 items were created by the basic llm node. But why no error message?

You know what they say - AI works in mysterious ways… Try to set the Basic LLM Chain node to “Always output data” to see if this makes it more obvious - it will probably fail, but at least you will see why.

1 Like

Thank you :slight_smile: will try this

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