I’m working on a workflow that goes as follows: take a .csv file of 100 MB or more, read it, send SMS messages, then update the status saying that it has been sent and move it to a new folder for sent files (on the same machine where N8N is running).
I’m having trouble reading the file. I’ve tried converting it to JSON, but it resulted in an error. I’ve also tried extracting the data in other ways, but it didn’t work.
Today, I’ll test it with RabbitMQ. I’ll send the entire file to RabbitMQ and then process it using N8N, following the workflow.
I’m open to suggestions using N8N due to the urgency. Otherwise, I would have gone with coding… Even Python, in which I’m still a junior.
Thanks in advance, and have a great week, everyone.
The code node may consume a lot of memory if the CSV is too big, so I’d suggest to move the Code node into a sub workflow. In that case after the sub workflow will be executed, the memory will be released
I ended up making a shell script that reads the CSV, imports it into Postgres and then follows the flow through Postgres
the 90MB CSV doesn’t open and doesn’t extract the data so I can loop through it and send it directly through N8n