<?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: tFILEEXIST in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211064#M9246</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;PRE&gt;I used the right global variable as said by u&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;((Boolean)globalMap.get("tFileExists"))&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;and&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;!((Boolean)globalMap.get("tFileExists"))&lt;/PRE&gt;&lt;BR /&gt;Are you sure you input the correct expression? To me, the error is caused by the global variable that does not exist.&lt;BR /&gt;The correct expression is:&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shongif&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Dear Shong, 
&lt;BR /&gt;You are right , there was error in the global variable , i am able to run now . 
&lt;BR /&gt;Now what is happening i am able to check if file is present it says file exist. 
&lt;BR /&gt;But when file is not there it doesn't display file dose not exist. 
&lt;BR /&gt;tfilelist doesn't return anything may be thats why it doesn't display file doesn't exist. 
&lt;BR /&gt;How to handle this?</description>
    <pubDate>Wed, 11 Jan 2017 04:41:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-11T04:41:18Z</dc:date>
    <item>
      <title>tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211058#M9240</link>
      <description>Dear Users, 
&lt;BR /&gt;I want to implement the file exist in the dir or no after archival process is over , 
&lt;BR /&gt;i made the following job:- 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCrc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154864i570E87D8308D97F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCrc.png" alt="0683p000009MCrc.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Configuration of each component is as follows:- 
&lt;BR /&gt;tfilelist:- 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCrc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154864i570E87D8308D97F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCrc.png" alt="0683p000009MCrc.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;tfileexist:- 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCrh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137917i34609D7F9E8D3B08/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCrh.png" alt="0683p000009MCrh.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;if condition: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCpc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135159iB80FCD756DCB91A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCpc.png" alt="0683p000009MCpc.png" /&gt;&lt;/span&gt;2nd if condition if file dosent exist:- 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCrm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154144iB5A19891FC18C502/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCrm.png" alt="0683p000009MCrm.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Its throwing null pointer exception in tfileexist, any idea please help 
&lt;BR /&gt;thanks.</description>
      <pubDate>Sat, 16 Nov 2024 10:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211058#M9240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211059#M9241</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;What is the full error message? Can you please upload a screenshot of the whole job?
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 05 Jan 2017 05:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211059#M9241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T05:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211060#M9242</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&amp;nbsp;&lt;BR /&gt;What is the full error message? Can you please upload a screenshot of the whole job?&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Dear shong, 
&lt;BR /&gt;Below is the screen shot of full job:- 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCrr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135522i56BC64A797C1DACE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCrr.png" alt="0683p000009MCrr.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Error message:- 
&lt;BR /&gt;Starting job FILE_EXIST at 20:56 06/01/2017. 
&lt;BR /&gt; connecting to socket on port 3726 
&lt;BR /&gt; connected 
&lt;BR /&gt;: sapphire_611.file_exist_0_1.FILE_EXIST - tFileExist_1 null 
&lt;BR /&gt;Exception in component tFileExist_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at sapphire_611.file_exist_0_1.FILE_EXIST.tFileList_1Process(FILE_EXIST.java:588) 
&lt;BR /&gt; at sapphire_611.file_exist_0_1.FILE_EXIST.runJobInTOS(FILE_EXIST.java:1129) 
&lt;BR /&gt; at sapphire_611.file_exist_0_1.FILE_EXIST.main(FILE_EXIST.java:963) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job FILE_EXIST ended at 20:56 06/01/2017.</description>
      <pubDate>Fri, 06 Jan 2017 18:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211060#M9242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211061#M9243</link>
      <description>I think I have replied you in another topic, this is because you don't use the right global variable, please check it.&amp;nbsp;</description>
      <pubDate>Mon, 09 Jan 2017 03:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211061#M9243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T03:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211062#M9244</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I think I have replied you in another topic, this is because you don't use the right global variable, please check it.&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Dear Shong, 
&lt;BR /&gt;I used the right global variable as said by u 
&lt;BR /&gt;((Boolean)globalMap.get("tFileExists")) 
&lt;BR /&gt;and&amp;nbsp; 
&lt;BR /&gt;!((Boolean)globalMap.get("tFileExists")) 
&lt;BR /&gt;But i am getting error in tFileexist component 
&lt;BR /&gt;error:null pointer exception 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MClu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142554iF20CF58529D8E58B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MClu.png" alt="0683p000009MClu.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I have used the global variable in tfileexist as&amp;nbsp; 
&lt;BR /&gt;((String)globalMap.get(tFileList_1_CURRENT_FILEPATH))</description>
      <pubDate>Mon, 09 Jan 2017 05:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211062#M9244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T05:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211063#M9245</link>
      <description>&lt;PRE&gt;I used the right global variable as said by u&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;((Boolean)globalMap.get("tFileExists"))&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;and&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;!((Boolean)globalMap.get("tFileExists"))&lt;/PRE&gt; 
&lt;BR /&gt;Are you sure you input the correct expression? To me, the error is caused by the global variable that does not exist. 
&lt;BR /&gt;The correct expression is: 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 10 Jan 2017 06:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211063#M9245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-10T06:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211064#M9246</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;PRE&gt;I used the right global variable as said by u&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;((Boolean)globalMap.get("tFileExists"))&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;and&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;!((Boolean)globalMap.get("tFileExists"))&lt;/PRE&gt;&lt;BR /&gt;Are you sure you input the correct expression? To me, the error is caused by the global variable that does not exist.&lt;BR /&gt;The correct expression is:&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shongif&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Dear Shong, 
&lt;BR /&gt;You are right , there was error in the global variable , i am able to run now . 
&lt;BR /&gt;Now what is happening i am able to check if file is present it says file exist. 
&lt;BR /&gt;But when file is not there it doesn't display file dose not exist. 
&lt;BR /&gt;tfilelist doesn't return anything may be thats why it doesn't display file doesn't exist. 
&lt;BR /&gt;How to handle this?</description>
      <pubDate>Wed, 11 Jan 2017 04:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211064#M9246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T04:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: tFILEEXIST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211065#M9247</link>
      <description>Hi &amp;nbsp;
&lt;BR /&gt;I don't understand your job logic, tfilelist is used to iterate each file that matches the file mark, and you use the current file path on tFileExist to check if the file exist? The result of tFileExist should be always true in your case.&amp;nbsp;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 13 Jan 2017 06:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFILEEXIST/m-p/2211065#M9247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T06:23:45Z</dc:date>
    </item>
  </channel>
</rss>

