đŸ˜« I just want to get the original loop output data

I have 2 loops chained together. I’m just trying to reference the first loop’s data output from the second loop’s done branch.

The first loop has all of the business info, and the second loop has just the summary and classification data.

I need to access both in order to add a row to my database with both the business and classification data. I just tried a merge node carrying the data forward, but it’s queueing up items in the input 1, and it results in a mismatched classification.

What’s the best way to fix this workflow so I can access all data at the same time?

Hi, @nosiremosacasar !

I’m new using n8n, but here’s my opinion.

Any data that the loop node gets from its loops, either the big or the small, it’s done, which means it don’t get into any loop of the loop node again and just wait all other data to output through the “done”.

If you want your concrete info and your summary info to go back the first loop node in a raw, you should not let the concrete info return once you get them, instead you let them continue in the loop, wait the summary info, and use a set node to get both to go back the first loop node finally.

From how the Loop node works in n8n: once an item exits a loop (big or small), it’s done and won’t re-enter the loop. That data will only move forward to the Done output while the loop waits for the remaining items.

So if you want both the concrete info and the summary info to return to the first loop together, you shouldn’t send the concrete info out early. Let it stay inside the loop, wait until the summary is generated, and then use a Set (or Merge) node to combine both before sending them back to the first loop.

That way, everything returns as a single, consistent payload instead of splitting prematurely.

[email protected]