Skip to main content
Solved

Csv file writer empty!

  • July 3, 2014
  • 1 reply
  • 50 views

farfar
Contributor
Forum|alt.badge.img+11
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.
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings