CSV node not respecting headers

RubensMoreno
Tue, 18 Mar 2025 02:06:06 +0000
General

Hi folks,

I've been through a behaviour that I never seen before when playing with the CSV node, trying to convert an Array of objects to CSV.

From my node "Set payload to single ReportData" I will have N arrays of data({timestamp, raw_data}), which I expect to have individually converted to a CSV structure, based on the JSON keys available in each object to become the headers. I found out that it's not working automatically when triggering the "timestamp node" (you can see the second one won't have data, and will be using a wrong header [I even tried to force headers at msg.columns without success]). But if I do it using the injects A or B, which has the "hardcoded" individual payload from the "delay" node it works perfectly fine.

I'll share some screenshots and I hope I can find some help!

Best regards to everyone!

4 posts - 3 participants