Hi 
I’m building a workflow that should:
-
Fetch sales data (around 22,000 rows) from a file (Excel/SharePoint).
-
Group the data by the column “Partner Name” (~100 unique partners).
-
For each partner, generate a separate Excel file and upload it to SharePoint.
Current approach
-
Get Rows→ fetch all 22k rows. -
Code node→ group data by partner. -
Loop Over Items→ for each partner, create a file (Convert to File) and upload it (Upload to SharePoint).
Problem: the workflow hangs and freezes (especially in the Code node and Loop Over Items).
Sometimes it runs for a very long time, other times it never finishes.
Questions
- What’s the best way to handle this use case in n8n?
- Has anyone else faced a similar issue with large datasets (20k+) and SharePoint export?
Expected outcome
A workflow that can reliably:
-
Fetch all rows,
-
Extract unique partners,
-
Generate and upload one file per partner,
-
Without freezing or stalling after a few thousand rows.
Information on your n8n setup
- n8n version: 1.107.4
- Running n8n via ( n8n cloud )