<?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 Re: Empty File Validation in Talend ETL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345259#M112815</link>
    <description>Thanks for the response.
&lt;BR /&gt;I'm done with the flow but in the last step I got struck
&lt;BR /&gt;tFileList -&amp;gt; tFileProperties -&amp;gt; If empty file means it has to connect to tMap component and populate few fields related to error handling.
&lt;BR /&gt;If it is not empty file it has to connect to tFileInputDelimited which I'm able to do it.
&lt;BR /&gt;Can you help me in connecting from tFileProperties --&amp;gt; tMap component</description>
    <pubDate>Tue, 30 Jul 2013 09:42:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-30T09:42:45Z</dc:date>
    <item>
      <title>Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345256#M112812</link>
      <description>Hi,&lt;BR /&gt;I'm using Talend ETL for my files processing. I had a requirement where I need to identify whether input file is empty or not. I'm aware we can get the file properties and check the size is 0 or not.&lt;BR /&gt;But my problem is after tFileList Component what are the components I have to add to identify the empty file.&lt;BR /&gt;if it is empty file it should go to one flow - else it has to go normal processing flow.&lt;BR /&gt;Can you please help me for the above problem.&lt;BR /&gt;Kalyan M</description>
      <pubDate>Tue, 30 Jul 2013 09:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345256#M112812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345257#M112813</link>
      <description>Hi
&lt;BR /&gt;In Talend, you can use tFileProperties to get the file properties, there is a field called size that populate the file size, if it is 0, means the file is empty. According to your description, a job design for example looks like:
&lt;BR /&gt;tFileFlist--iterate--tFileProperties--tJavaRow--runIf_1--&amp;gt;normal processing flow
&lt;BR /&gt; --runIf_2---&amp;gt;another processing if the file is empty
&lt;BR /&gt;on tJavaRow, check the file if it is empty and put the result to a global variable, for example:
&lt;BR /&gt;
&lt;PRE&gt;if(input_row.size==0){&lt;BR /&gt;globalMap.put("isEmpty", true);&lt;BR /&gt;}else{&lt;BR /&gt;globalMap.put("isEmpty", false);&lt;BR /&gt;}&lt;/PRE&gt;
&lt;BR /&gt;set the condition of runIf_1 as:
&lt;BR /&gt;!(Boolean)globalMap.get("isEmpty")
&lt;BR /&gt;set the condition of runIf_2 as:
&lt;BR /&gt;(Boolean)globalMap.get("isEmpty")
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 30 Jul 2013 09:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345257#M112813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T09:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345258#M112814</link>
      <description>It can be achieve using two way and here are they..&lt;BR /&gt;1. tFileList---iterate--tFileInput&lt;BR /&gt;         in tFileInput components basic property check skip empty record check box this is one way. &lt;BR /&gt;2.. tFileList---tFileProperty-----if(has siz)-----1&lt;BR /&gt;                                   \&lt;BR /&gt;                                    \&lt;BR /&gt;                                    if (file has zero size)----------2&lt;BR /&gt;Hope this will help</description>
      <pubDate>Tue, 30 Jul 2013 09:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345258#M112814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345259#M112815</link>
      <description>Thanks for the response.
&lt;BR /&gt;I'm done with the flow but in the last step I got struck
&lt;BR /&gt;tFileList -&amp;gt; tFileProperties -&amp;gt; If empty file means it has to connect to tMap component and populate few fields related to error handling.
&lt;BR /&gt;If it is not empty file it has to connect to tFileInputDelimited which I'm able to do it.
&lt;BR /&gt;Can you help me in connecting from tFileProperties --&amp;gt; tMap component</description>
      <pubDate>Tue, 30 Jul 2013 09:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345259#M112815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345260#M112816</link>
      <description>Hi Shong
&lt;BR /&gt;I tried to implement your approach but getting the below exception 
&lt;BR /&gt;Exception in component tJavaRow_1
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at finance_coda.jo_coda_0010_processv11_ecommerce_0_1.jo_CODA_0010_ProcessV11_ECOMMERCE.tFileList_1Process(jo_CODA_0010_ProcessV11_ECOMMERCE.java:4210)
&lt;BR /&gt; at ...............
&lt;BR /&gt;I'm not able to paste the screen shot but my implementation is as follows -
&lt;BR /&gt;tFileFlist--iterate--tMessage--iterate--tFileProperties--main--tJavaRow--runIf_1--&amp;gt;tJava--tMap-- ...
&lt;BR /&gt; --runIf_2---&amp;gt;another processing if the file is empty
&lt;BR /&gt;I have placed the if conditions and javaRow code as said by you.</description>
      <pubDate>Tue, 30 Jul 2013 13:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345260#M112816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345261#M112817</link>
      <description>Thanks All. I resolved the issue, it's working.</description>
      <pubDate>Wed, 31 Jul 2013 08:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345261#M112817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-31T08:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345262#M112818</link>
      <description>Hi Chakri,&lt;BR /&gt;How have you resolved the null pointer exception</description>
      <pubDate>Thu, 06 Mar 2014 06:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345262#M112818</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-03-06T06:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345263#M112819</link>
      <description>Hi Team , 
&lt;BR /&gt;I m getting below error 
&lt;BR /&gt;"Syntax error on token "(", Expression expected after this token" 
&lt;BR /&gt;ok_Hash.put("tFileExist_1", true); 
&lt;BR /&gt;end_Hash.put("tFileExist_1", System.currentTimeMillis()); 
&lt;BR /&gt;if () { 
&lt;BR /&gt;if(execStat){ 
&lt;BR /&gt;runStat.updateStatOnConnection("If1", 0, "true"); 
&lt;BR /&gt;} 
&lt;BR /&gt;tMsgBox_1Process(globalMap); 
&lt;BR /&gt;} 
&lt;BR /&gt;else{ 
&lt;BR /&gt;if(execStat){ 
&lt;BR /&gt;runStat.updateStatOnConnection("If1", 0, "false")} 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;BR /&gt;/* 
&lt;BR /&gt;I need to check whether file exist or not ? ..If condition is not working ,...</description>
      <pubDate>Tue, 13 Oct 2015 06:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345263#M112819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-13T06:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345264#M112820</link>
      <description>Hi mohini&amp;nbsp; 
&lt;BR /&gt;It is a compilation error here, you must have a syntax error in the Java code you written on the component such as tJavaRow component if you follows the case. Please open the component properties of tJavaRow and check the Java code. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 13 Oct 2015 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345264#M112820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-13T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Empty File Validation in Talend ETL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345265#M112821</link>
      <description>Hi Shung,
&lt;BR /&gt;Yes ur right I was missing if condition .... which we will get it when we click on if (when we are using Run if, double click on If )there we .... there we need to provide condition
&lt;BR /&gt;ex:
&lt;FONT color="#333333"&gt;&lt;FONT size="1"&gt;&lt;FONT face="" verdana=""&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true or&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#333333"&gt;&lt;FONT size="1"&gt;&lt;FONT face="" verdana=""&gt;OR &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#333333"&gt;&lt;FONT size="1"&gt;&lt;FONT face="" verdana=""&gt;&amp;nbsp;false ....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;THanks for the help
&lt;BR /&gt;Regards
&lt;BR /&gt;Mohini</description>
      <pubDate>Wed, 14 Oct 2015 05:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-File-Validation-in-Talend-ETL/m-p/2345265#M112821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-14T05:32:30Z</dc:date>
    </item>
  </channel>
</rss>

