I have a workflow that splits data using the Split In Batches Node + a series of SQL queries. I have the data split according to the name of the customer in my ticket database, as well as their ticket count which is exactly what I want.
Now I’m wondering how I can “break” i.e. aggregate the Split In Batches at the end so I can output the data as rows in a single spreadsheet? Ideally with headers.
What is the error message (if any)?
Please share the workflow
Share the output returned by the last node
Information on your n8n setup
n8n version: 0.199.0
Database you’re using (default: SQLite): Postgres
Running n8n with the execution process [own(default), main]: own
Running n8n via [Docker, npm, n8n.cloud, desktop app]: K8s
The workflow you shared does not look like the example given.
If you changed it after please use the example and if it doesn’t work share that workflow.
Here’s an even better version. This one removes the requirement for merging the SQL outputs, and properly outputs ‘0’ if the ticket count is 0 (instead of counting the output as ‘1’):
While this works well, it certainly was a lot of extra work to figure out. I hope to see the “combine” functionality get added into the main Split In Batches node in the future.