This usually happens when pagination loses state during execution.
Common reasons are either the
Cursor gets reset or API returns an old next-page token or Rate limiting causes duplicate responses
So instead of moving forward normally:
Page 1 β 2 β 3 β 4
You end up with:
Page 1 β 2 β 3 β 2 β 3 β 2β¦
That creates duplicate records and can trap the workflow in a loop.
To fix this, Track Used Cursors and store every cursor youβve already used. If the same one appears again, stop the loop.
@Abrayomo paste your workflow so we can see the exact setup, but meanwhile hereβs a generic pagination loop that tracks seen pages and breaks when it detects a repeat β drop it in and swap the HTTP node URL to your API:
swap the URL and query param name to match your API, the Code node uses $getWorkflowStaticData('global') to remember every response it already saw so the moment a page repeats it stops cold instead of looping forever.