<?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 - to read the file if exist is not working in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249009#M33690</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In the if condition put :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to continue if file exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))==false&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 18:12:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-14T18:12:10Z</dc:date>
    <item>
      <title>tFileExist - to read the file if exist is not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249007#M33688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The job design is as below, which would be running in batch mode as .sh:&lt;/P&gt; 
&lt;P&gt;1. Read the connection parameters, assign to globalMap.&lt;/P&gt; 
&lt;P&gt;2. Read the application parameters, assign to globalMap.&lt;/P&gt; 
&lt;P&gt;3. Check if the restart file exist. If exist get the last processed ID and assign to globalMap.&lt;/P&gt; 
&lt;P&gt;4. On successful assigning last processed ID to globalMap, delete the file.&lt;/P&gt; 
&lt;P&gt;5. Read data from tables, process and update the table.&lt;/P&gt; 
&lt;P&gt;6. On unsuccessful exit on table update, create the file and save the last processed ID.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All the component works except tFileExist. It is not working as expected.&lt;/P&gt; 
&lt;P&gt;The file name is from globalMap variable - ((String)globalMap.get("filepath/filename"))&lt;/P&gt; 
&lt;P&gt;And this component is connected to tFileInputDelimited onSubjobOk.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The expectation is such that tFileInputDelimited should run only when file exist.&lt;/P&gt; 
&lt;P&gt;But actual scenario is that tFileInputDelimited run even when the file does not exist.&lt;/P&gt; 
&lt;P&gt;The tJava displays the filepath/filename as expected.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have attached the screenshot.&lt;/P&gt; 
&lt;P&gt;Could you suggest how could I use the tFileExist with the file name from globalMap variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 17:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249007#M33688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T17:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist - to read the file if exist is not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249008#M33689</link>
      <description>&lt;P&gt;I get "java.io.FileNotFoundException:" when the tFileInputDelimited_3 file does not exist.&lt;/P&gt;&lt;P&gt;This&amp;nbsp;&lt;SPAN&gt;tFileInputDelimited_3 is invoked OnSubjobOk from tFileExist_1.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 17:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249008#M33689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T17:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist - to read the file if exist is not working</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249009#M33690</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the if condition put :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to continue if file exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((Boolean)globalMap.get("tFileExist_1_EXISTS"))==false&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 18:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-to-read-the-file-if-exist-is-not-working/m-p/2249009#M33690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T18:12:10Z</dc:date>
    </item>
  </channel>
</rss>

