Workflow Not looping like before

Describe the problem/error/question

My workflow used to loop, but now it doesn’t. I tried adding an if node to try and make it loop but that doesn’t work and neither does using a loop node. I am using setTotalPages as the number of times I want the workflow to run. The thought was that as long as the current page is less than the total it would continue to run. It does not.

The output of the initial run is correct I just need it to keep running.

What is the error message (if any)?

No errors.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.52.0
  • Database (default: SQLite): SQLITE
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm - through render.com
  • Operating system:
1 Like

hello @Ethan_Fox

in the IF node replace .item with .last() for both parameters. As you won’t be able to get the .item property of the setTotalPages Node for pages 2+

2 Likes

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