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.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema