Problem in node ‘Merge‘ Maximum call stack size exceeded


I have a question regarding the merge.
Today I am trying to merge 2 files together, one of which is about 40000 lines long and the other about 60 lines.
However, when I try to do this I get a maximum call stack size exceeded. :pensive:
And at the moment I can’t find a good way to make a loop on this merge is it possible and do you have any recommendations?

Thank you in advance for your help

What is the error message (if any)?

Problem in node ‘Merge‘ Maximum call stack size exceeded

Please share the workflow

The first Spreadsheet is my biggest file

Information on your n8n setup

  • n8n version: 0.208.0
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]: npm

Hi @AlexAreku, welcome to the community and sorry for the trouble!

I just gave the below workflow a go and could merge 60,000 + 60 items without hitting this error (I was using [email protected] though):

Could you perhaps share example files using which this problem can be reproduced?

As for working around this, is there a chance you can split up the larger file before reading it in n8n?

1 Like


Thank you for your help

I will try to provide you some files.
However, these are 2 csv with less than 10 columns each with quite “small” data

I have tried to upgrade to version 0.209.4 and I have the same problem.

You also talk about splitting the file, I would like to do that, but how can I get a merged file with all my data?
I don’t see how to do a proper split and try to make a kind of loop.

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