<?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 TfileExist - forEach - tFileCopy work with in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227145#M18847</link>
    <description>hi 
&lt;BR /&gt;I have to ,foreach values in the tForeach componenent, copy a file namming with that value if exist 
&lt;BR /&gt;I try to use those 3 components (seems to be the right ones !? to do this job) but without success. 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job archivage_reception at 16:23 14/11/2008.&lt;BR /&gt;Exception in component tFileCopy_1&lt;BR /&gt;java.lang.RuntimeException: The source File "RCPO" does not exist or is not a file.&lt;BR /&gt;	at getattachment.archivage_reception_0_1.archivage_reception.tFileCopy_1Process(archivage_reception.java:311)&lt;BR /&gt;	at getattachment.archivage_reception_0_1.archivage_reception.tForeach_1Process(archivage_reception.java:253)&lt;/PRE&gt; 
&lt;BR /&gt;Missing a condition expression I guess but where and how ... 
&lt;BR /&gt;I've tried witn "run if" between fileExist ans filecopy 
&lt;BR /&gt; 
&lt;PRE&gt;tfileExist =&amp;gt;run if =&amp;gt;tfileCopy&lt;/PRE&gt; 
&lt;BR /&gt;Sure it's no so difficult -lol) 
&lt;BR /&gt; 
&lt;BR /&gt;filename int tFileExist : 
&lt;BR /&gt; 
&lt;PRE&gt;......TE/EN-TRAITEMENT/"+((String)globalMap.get("tForeach_1_CURRENT_VALUE"))&lt;/PRE&gt; 
&lt;BR /&gt;filename from tfilecopy 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tForeach_1_CURRENT_VALUE"))&lt;/PRE&gt; 
&lt;BR /&gt;thanks for your help</description>
    <pubDate>Sat, 16 Nov 2024 14:09:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:09:50Z</dc:date>
    <item>
      <title>TfileExist - forEach - tFileCopy work with</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227145#M18847</link>
      <description>hi 
&lt;BR /&gt;I have to ,foreach values in the tForeach componenent, copy a file namming with that value if exist 
&lt;BR /&gt;I try to use those 3 components (seems to be the right ones !? to do this job) but without success. 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job archivage_reception at 16:23 14/11/2008.&lt;BR /&gt;Exception in component tFileCopy_1&lt;BR /&gt;java.lang.RuntimeException: The source File "RCPO" does not exist or is not a file.&lt;BR /&gt;	at getattachment.archivage_reception_0_1.archivage_reception.tFileCopy_1Process(archivage_reception.java:311)&lt;BR /&gt;	at getattachment.archivage_reception_0_1.archivage_reception.tForeach_1Process(archivage_reception.java:253)&lt;/PRE&gt; 
&lt;BR /&gt;Missing a condition expression I guess but where and how ... 
&lt;BR /&gt;I've tried witn "run if" between fileExist ans filecopy 
&lt;BR /&gt; 
&lt;PRE&gt;tfileExist =&amp;gt;run if =&amp;gt;tfileCopy&lt;/PRE&gt; 
&lt;BR /&gt;Sure it's no so difficult -lol) 
&lt;BR /&gt; 
&lt;BR /&gt;filename int tFileExist : 
&lt;BR /&gt; 
&lt;PRE&gt;......TE/EN-TRAITEMENT/"+((String)globalMap.get("tForeach_1_CURRENT_VALUE"))&lt;/PRE&gt; 
&lt;BR /&gt;filename from tfilecopy 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tForeach_1_CURRENT_VALUE"))&lt;/PRE&gt; 
&lt;BR /&gt;thanks for your help</description>
      <pubDate>Sat, 16 Nov 2024 14:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227145#M18847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: TfileExist - forEach - tFileCopy work with</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227146#M18848</link>
      <description>Hi Kzone, 
&lt;BR /&gt;Yes, you're right, the tfileExist component work with the link "run if". the condition to insert by clicking on the run if link is ((Boolean)globalMap.get("tFileExist_1_EXISTS")). tFileExist_1 is the name of your component. I hope this helps 
&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Youssef</description>
      <pubDate>Fri, 14 Nov 2008 15:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227146#M18848</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-14T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: TfileExist - forEach - tFileCopy work with</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227147#M18849</link>
      <description>thanks a lot youssef 
&lt;BR /&gt;It work fine now !
&lt;BR /&gt;with just a little chnage in the filename TfileCopy component
&lt;BR /&gt;
&lt;PRE&gt;((String)globalMap.get("tFileExist_1_FILENAME"))&lt;/PRE&gt;
&lt;BR /&gt;++</description>
      <pubDate>Fri, 14 Nov 2008 16:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TfileExist-forEach-tFileCopy-work-with/m-p/2227147#M18849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-14T16:15:52Z</dc:date>
    </item>
  </channel>
</rss>

