Skip to main content
Solved

Csv file writer empty!

  • July 3, 2014
  • 1 reply
  • 63 views

farfar
Contributor
Forum|alt.badge.img+12
Hi All,

 

My writer (csv file) is created only if i have results to input; But if there is no result, the csv file is not created.

 

Is there possibilities to create it even if is empty?

 

 

Thanks an advance.

 

 

FarFar

Best answer by tdavis

You could use a NoFeatureTester transformer (from the store). Just proir to writing the csv you could check if there are any featuires going into the csv. If not, the no feature tester will actually create one feature and you can write that to the csv. So it should create a blank line in what will be a empty csv.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img
  • Best Answer
  • July 3, 2014
You could use a NoFeatureTester transformer (from the store). Just proir to writing the csv you could check if there are any featuires going into the csv. If not, the no feature tester will actually create one feature and you can write that to the csv. So it should create a blank line in what will be a empty csv.