How I can check if a delimited file is empty except the headline?
Let say this is an csv output but nothing has been appended:
If I use tfileExist the condition is always true because the file exists because of the header.
Thanks for any advice.
Solved! Go to Solution.
The most easy way is to read the file and send the output to a tAggregateRow component. Create an output column which will calculate the total count of records. If the value is not zero, it means you have data else its empty file.
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Test drive Talend's enterprise products.