Hi guys I’ve pretty basic question. We use a “ConvertRecord” processor where we convert an AVRO to a CSV. For that CSV output we would like to have the header enabled, so we tried to set “Include Header Line – true” for the Controller Service of the CSVRecordSetWriter. The issue is, if we have zero records, the header doesn’t show up (but it was there of course in the AVRO file). We need to have it as the columns are important for us, even if we have 0 records. At the moment we solve it with an extra ExecuteScript processor just before the ConvertRecord, there we add always an extra record with the header lines as string. But it feels a bit hacky as the record.count attribute is 1 record too high (due to the fake header record). Has anybody another easy approach :-)?
Cheers Josef [Graphical user interface, application Description automatically generated]
smime.p7s
Description: S/MIME Cryptographic Signature
