<?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 not working? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294509#M67378</link>
    <description>&lt;P&gt;tFileExists give you the answer, the file exists or not.&lt;/P&gt;&lt;P&gt;So you have to test the&amp;nbsp;tFileExist_1_EXISTS using an "If" trigger to decide&amp;nbsp;where to go.&lt;/P&gt;&lt;P&gt;That's the way it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 15:16:48 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-04-24T15:16:48Z</dc:date>
    <item>
      <title>tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294506#M67375</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am doing my first Talend course and I am in the process of trying to understand the functionality of the components. I the course, a tFileExist component is used to activate a subjob if a given file exists. Seems straightforward to me, but I can not get it working myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that no matter what, the tFileExist component always fires the onSubJobOK action as well as the OnComponentOK action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check this, I have created a new job with a simplified version of the course lesson, only containing a tFileExist compent and two tMsgBox components. I linked the tMsgBox components using OnSubjobOK and OnSubjobError, with different messages. In the tFileExist compoment I specified a non existing file. But the OK message is always displayed, if the specified file exists or not.&lt;/P&gt;&lt;P&gt;My goal is trying to understand this component, trying to understand why it is not working right now, and the proper way to do a file test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Talend studio 6.5.1 on a linux machine right now. If I need to clarify, please let me know.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ruud&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294506#M67375</guid>
      <dc:creator>rgros</dc:creator>
      <dc:date>2024-11-16T08:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294507#M67376</link>
      <description>&lt;P&gt;Share your job design with settings for tFileExists and the "if" triggers you wrote.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294507#M67376</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-24T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294508#M67377</link>
      <description>&lt;P&gt;I have attached a screenshot of the job. It is really very simple. I managed to get a working version by connection the two tMsgBox components with a 'run if' connector and respectively condidtions&lt;/P&gt;&lt;PRE&gt;(Boolean)globalMap.get("tFileExist_1_EXISTS")&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;! (Boolean)globalMap.get("tFileExist_1_EXISTS") &lt;/PRE&gt;&lt;P&gt;but I cannot understand why the tFileExist component does not do this itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the talend site, I found a tutorial that indicates that tFileExist &lt;EM&gt;should&lt;/EM&gt;_work as I presumed: &lt;A href="https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/ziyLfSTQ51rpK6WIDGOkgQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/ziyLfSTQ51rpK6WIDGOkgQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this sufficient to describe my configuration?&lt;/P&gt;&lt;P&gt;thanks, Ruud&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lsds"&gt;talend1.png&lt;/A&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294508#M67377</guid>
      <dc:creator>rgros</dc:creator>
      <dc:date>2018-04-24T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294509#M67378</link>
      <description>&lt;P&gt;tFileExists give you the answer, the file exists or not.&lt;/P&gt;&lt;P&gt;So you have to test the&amp;nbsp;tFileExist_1_EXISTS using an "If" trigger to decide&amp;nbsp;where to go.&lt;/P&gt;&lt;P&gt;That's the way it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294509#M67378</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-24T15:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294510#M67379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use "Run if" trigger to know whether the file exist or not. In this way we will check the file exist validation. Attaching the screen shot for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharath.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lso5"&gt;Fileexist.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294510#M67379</guid>
      <dc:creator>javvaji</dc:creator>
      <dc:date>2018-04-24T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294511#M67380</link>
      <description>&lt;P&gt;I guess so. But the name suggests the component is there to do a file check. Why this has to be done explicitly again is a bit confusing to a novice like me.&lt;/P&gt; 
&lt;P&gt;Moreover, the tutorials and course material I found up til now advice to use the onSubJobOK connection. That is confusing too.&lt;/P&gt; 
&lt;P&gt;Hopefully talend proves to be intuitive again when I continue my course &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Ruud&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294511#M67380</guid>
      <dc:creator>rgros</dc:creator>
      <dc:date>2018-04-24T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294512#M67381</link>
      <description>&lt;P&gt;onComponentOK means the component doesn't failed, and it doesn't even if the file doesn't exists, right.&lt;/P&gt;&lt;P&gt;onComponentError means the component failed, but maybe the file exists...&lt;/P&gt;&lt;P&gt;So it's logic to have to check the dedicated variable associated to the component giving the answer to the question "does this file exists or not".&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294512#M67381</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-24T15:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294513#M67382</link>
      <description>I see. But then, maybe the tFileExist component should better be renamed to tCondition, because it can contain any test even not file related tests? Thanks for the help anyway; I can now stop trying to implement onComponentOK based solution.</description>
      <pubDate>Tue, 24 Apr 2018 15:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294513#M67382</guid>
      <dc:creator>rgros</dc:creator>
      <dc:date>2018-04-24T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294514#M67383</link>
      <description>&lt;P&gt;Not at all.&lt;/P&gt;&lt;P&gt;tFileExists does just 1 thing, testing a file exists or not.&lt;/P&gt;&lt;P&gt;Then it's your responsability to decide what to do after and how to use the variable proposed by the component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget to mark your case as solved (Kudo also accepted).&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294514#M67383</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-24T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294515#M67384</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLYdAAO"&gt;@rgros&lt;/A&gt;&amp;nbsp;thank's to mark your case as solved (Kudos also accepted).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294515#M67384</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-04-25T07:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist not working?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294516#M67385</link>
      <description>OK, if you don't mind, I mark my own reply as solution, because it is most detailed. 
&lt;BR /&gt;The essence of the tFileExist component is that it sets the global variable which can then be testen. Right. I missed that detail. 
&lt;BR /&gt;Still I think it is wise to update the reference manual (see link) on that point.... 
&lt;BR /&gt;Ruud</description>
      <pubDate>Wed, 25 Apr 2018 08:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-not-working/m-p/2294516#M67385</guid>
      <dc:creator>rgros</dc:creator>
      <dc:date>2018-04-25T08:18:58Z</dc:date>
    </item>
  </channel>
</rss>

