Loop over items broken functionality

Describe the problem/error/question

I’m building an n8n workflow to check a list of emails for data breaches using the ‘Have I Been Pwned’ API. My goal is to have the workflow loop through each email, make an API call for each one with a delay to respect rate limits, and then collect all the results. Once all emails have been tested, I want to send a single, consolidated report to a Discord webhook.

The problem I’m facing is that the workflow only processes the very first email in the list. The loop does not continue to the second email, so only one API call is ever made. I’m looking for a way to ensure the loop iterates through the entire list before the execution finishes

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

here is all the current breaches:
ExploitIn,
Collection1,
MindJolt,
piZap,
Zynga,
Deezer,
Twitter200M,
NotSOCRadar,
AlienStealerLogs

Information on your n8n setup

  • n8n version:
    1.106.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): hostinger cloud n8n instance
  • Operating system: n8n

Hi Yenn,

Quick glance at your workflow - I think you need to loop from the Discord node back to the Loop Over Items node otherwise it will not loop and will only process the first item.

Check out the examples in the docs here: Loop Over Items (Split in Batches) | n8n Docs

Hope that helps.

S

Hi @yenn404

welcome to the community!

I think your loop is only running for the first email because it’s not properly connecting back to the starting of the loop below will share a sample workflow that i have created

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