Hello,
I want to create a flow as follows: I retrieve the JSON files from an FTP server, download them, convert them to CSV, and then store them in another FTP server. However, I want to convert the files to CSV one by one, not like I do, where all the JSON files are converted into a single CSV file.
The nodes used are:
List FTP
Download FTP
Extract from JSON file
Split Out
I stopped here because if each file has 5 JSON objects, and I want each JSON object to be a row in the CSV file, it creates a single final file with 10 items.
Thanks for the solution.
But unfortunately, it didnât work.
From what Iâve seen in n8n, the loop is no longer necessary, because all actions are executed for each item. What happens in this case is that it executes everything twice, with the same result. I think the problem is with the split out, but I donât know how to fix it.
Youâre right ,the Split Out node is creating duplicate items, and since n8n processes each item automatically, youâre getting everything executed twice with the same data
Remove Split Out node: If your API returns an array of customers, n8n will automatically process each one individually through the subsequent nodes