CSV from API without header

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:

image

(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?

Welcome to the community @bruno.pellanda!

You can do the following:

2 Likes

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:

image

and before it was right. Before this wasn´t happening. Is there any way to do this?

You can try to set “Read As String” and/or “RAW Data” on the Spreadsheet File-Node.

1 Like

Adding encoding latin1 plus read as string solved my problem.

Thank you again !

2 Likes

Ah great to hear! Then have fun!

1 Like