<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Chech delimited file if it's empty in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281179#M55792</link>
    <description>&lt;P&gt;How I can check if a&amp;nbsp;delimited file is empty except the headline?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let say this is an csv output but nothing has been appended:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column1|Column2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use tfileExist the condition is always true because the file exists because of the header.&lt;/P&gt;
&lt;P&gt;Thanks for any advice.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 14:58:51 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2019-08-09T14:58:51Z</dc:date>
    <item>
      <title>Chech delimited file if it's empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281179#M55792</link>
      <description>&lt;P&gt;How I can check if a&amp;nbsp;delimited file is empty except the headline?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let say this is an csv output but nothing has been appended:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column1|Column2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use tfileExist the condition is always true because the file exists because of the header.&lt;/P&gt;
&lt;P&gt;Thanks for any advice.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281179#M55792</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2019-08-09T14:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Chech delimited file if it's empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281180#M55793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; 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.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281180#M55793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chech delimited file if it's empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281181#M55794</link>
      <description>&lt;P&gt;tFileRowCount with the option "Ignore empty rows" is a solution.&lt;/P&gt;&lt;P&gt;If row count is &amp;gt; 1 (((Integer)globalMap.get("tFileRowCount_1_COUNT")) &amp;gt; 1) then the file contains the header line + at least 1 non empty line.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 13:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Chech-delimited-file-if-it-s-empty/m-p/2281181#M55794</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-10T13:02:08Z</dc:date>
    </item>
  </channel>
</rss>

