Hi! I am consuming an API and get a CSV file from it, but the file does not have a header, then n8n assumes first row as its header. I´ve already solved the problem (or think so), because one of its columns is a DATEVALUE excel format and n8n is breaking its code:
(Format dd/mm/yyyy). The original value is 44047.40417824070 and I would like to keep it.
This is my workflow structure:
Http Request → Spreadsheet (read from file) → function → Postgres (insert)
Is there a way to add the spreadsheet header between http request and the read from file steps?
jan
August 5, 2020, 1:00pm
2
Welcome to the community @bruno.pellanda !
You can do the following:
Hi Jan!
Thank you very much for your time and help! It worked but now I have to change the charset because of my language:
and before it was right. Before this wasn´t happening. Is there any way to do this?
jan
August 5, 2020, 1:32pm
4
You can try to set “Read As String” and/or “RAW Data” on the Spreadsheet File-Node.
Adding encoding latin1 plus read as string solved my problem.
Thank you again !
jan
August 5, 2020, 2:04pm
6
Ah great to hear! Then have fun!