Workflow
AI Workflows

Why n8n Loop Over Items Stops After the First Batch

Nov 25, 2026|
AL
Automation Lab

Fix an n8n loop that stops after one batch. Check the return connection, inspect node outputs, and verify all records with a five-item example.

If n8n processes only the first batch, follow the **loop** output to the last node that handles the batch. Connect that node back to the input of **Loop Over Items**. Put the workflow’s final summary or export on **done**. The return connection asks the loop node for the next batch.

Check the execution before changing the workflow

  1. **Count the items entering Loop Over Items.** Open the execution and inspect the node’s input. If you expect five records and see only two, check the upstream node for pagination, filters, or a nested array. Five records inside a single JSON array can arrive as one n8n item. Split the array into separate items if each record should be processed individually.
  2. **Trace the wiring by output name.** Connect **loop** to the per-batch steps, such as formatting rows or sending an API request. Connect the last step back to Loop Over Items. Connect **done** to work that should run once after the loop, such as building a summary. Older workflows and discussions may call the node Split In Batches. Check the labels in your version.
  3. **Inspect the last node on the batch path.** If a filter drops every item in a batch or an error stops the path, the return connection may never execute. Preserve a small completion record for skipped batches when your workflow needs to continue. Design that path so a completion record can never be mistaken for a real row and written to the destination.
  4. **Check that Reset is off for a fixed input list.** Reset tells the node to treat inbound data as a new list. It is useful in some pagination designs that supply fresh input on each pass. Such a design needs a separate, explicit stop condition.

Fictional example: five rows, batches of two

Use a manual trigger and send five test records with IDs A through E to Loop Over Items. Set **Batch Size** to 2. On the loop path, use a transformation that keeps each ID and adds a test flag, then return to the loop input. With a one-to-one transformation, expect the batch path to receive A and B, then C and D, then E. The done path should see all five processed records. Compare the IDs as well as the count. A duplicated B could otherwise hide a missing E.

Run this first with an inspection step instead of a live write. If the transformation works but the original workflow stops, inspect what the original last node emits on the first batch. If the loop runs three times but fewer IDs reach the destination, look for dropped records or failed writes within the batch.

Questions people ask

Should the final step connect to loop or done?

Use **loop** for work that repeats with each batch. Connect the last repeating step back to Loop Over Items. Use **done** for work that needs the completed output, such as creating one report after all rows have been processed.

Do I need Loop Over Items to process every record?

Many n8n nodes already handle lists of items automatically. Use a loop when you need controlled batch sizes, a pause between batches, or a node that only handles one input at a time. Inspect the node documentation and run a small sample before adding a loop.

Why is my done output smaller than the original list?

Check whether the batch steps preserve one record per input. Filtering, aggregation and branching can change the number of returned items. Compare stable IDs at the input and after each transformation. Track skipped items separately when a complete reconciliation matters.

Sources

Keep exploring

Find practical AI assets for your next task

Browse curated collections and ready-to-use AI assets for marketing, sales, project delivery and other goals.