<?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 error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-error/m-p/2262748#M43115</link>
    <description>Hi &lt;BR /&gt;You did't set the condition of runIf link yet!</description>
    <pubDate>Thu, 20 Sep 2012 09:38:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-20T09:38:03Z</dc:date>
    <item>
      <title>tFileExist error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-error/m-p/2262747#M43114</link>
      <description>I am passing a value to tFileExist that contains a file location such as 
&lt;BR /&gt; 
&lt;PRE&gt;V:/!Q6UJ9A0043TK_0722081228_001.pdf&lt;/PRE&gt; 
&lt;BR /&gt;When my job hits the tFileExist component it throws the following error: 
&lt;BR /&gt; 
&lt;PRE&gt;Syntax Error on token "(", Expression expected after this token&lt;/PRE&gt; 
&lt;BR /&gt;The variable used in tFileExist is 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("map.filename"))&lt;/PRE&gt; 
&lt;BR /&gt;The variable is created by tFlowtoIterate. 
&lt;BR /&gt;I should also add that I am not using tFileList because there are over 100,000 files in this drive and it would take forever for this job to run through all those files when i only need about 200 files copied. I have a query setup in mysql to narrow the attachments down to the 200 I need. 
&lt;BR /&gt;Looking closer I noticed in the code view the following (note the empty if statement below): 
&lt;BR /&gt; 
&lt;PRE&gt; *  start&lt;BR /&gt; */&lt;BR /&gt;&lt;BR /&gt;currentComponent="tFileExist_1";&lt;BR /&gt;&lt;BR /&gt; &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;   				&lt;BR /&gt;					if(execStat){   &lt;BR /&gt;   	 					runStat.updateStatOnConnection("If1", 0, "true");&lt;BR /&gt;					}&lt;BR /&gt;				&lt;BR /&gt;    			tFileCopy_1Process(globalMap);&lt;BR /&gt;   			}&lt;BR /&gt;			   &lt;BR /&gt;   				else{&lt;BR /&gt;					if(execStat){   &lt;BR /&gt;   	 					runStat.updateStatOnConnection("If1", 0, "false");&lt;BR /&gt;					}   	 &lt;BR /&gt;   				}&lt;BR /&gt;&lt;BR /&gt;/**&lt;BR /&gt; *  stop&lt;BR /&gt; */&lt;/PRE&gt; 
&lt;BR /&gt;Anyone know why I am getting this error?</description>
      <pubDate>Wed, 19 Sep 2012 14:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-error/m-p/2262747#M43114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-19T14:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: tFileExist error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileExist-error/m-p/2262748#M43115</link>
      <description>Hi &lt;BR /&gt;You did't set the condition of runIf link yet!</description>
      <pubDate>Thu, 20 Sep 2012 09:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileExist-error/m-p/2262748#M43115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-20T09:38:03Z</dc:date>
    </item>
  </channel>
</rss>

