Loop Issue -

Describe the problem/error/question

Hi everyone, I trying to scrape a website using the sitemap.xml file. As has nested XML files, I’m trying to “read” out all the URLs and append to a google file.

What is the error message (if any)?

  1. At the end of the 1st looping, the Google Sheet node’s output is looped as input for the 2nd loop.

  2. The 2nd XML filename should be the input for the2nd loop.

Where did I went wrong? :rofl::rofl:

Thank you in advance for your inputs/solution.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.102.4
  • Database (default: SQLite):
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):self-hosted, mac
  • **Operating system:mac os

Hello @dareindie, welcome to community.
It’s because you split it wrong, and I give you the (maybe) right solution below.

If it helps you, kindly mark my message as solution, thanks!

hi cuteatcode, thank you for your reply. I have tried out your solution. Do you encounter at error on the 2nd loop?


Seemed like at the loop node, it is not taking the XMLs’ loc info from the split node

Do you encounter the same issue? Once again, thank you for your reply.

2 problems:

  1. Do NOT set the reset option on the Loop node
  2. Under the Loop node settings, it was set to only run once?

Fixed workflow:

2 Likes

Thank you very much! Solved!

1 Like

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