Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Hi Josh, like you I can't seem to get the CSV node to write out a file when it has 0 records. We're looking into it.
In the meantime I believe the data flow here will get you where you need to be. If the records are 0 it will write out a raw file with the field names with a delimiter you can specify on the composite, It will default to pipe as I see on your other post you mention that's what you are using. Otherwise it will just write out a regular CSV file. The FileName value is set at the composite level.
Attached files
Write Out Blank CSV.lna