<?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: [resolved] Passing the created or present file of tWaitForFile to a subjob in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330916#M99952</link>
    <description>Could you please post your tFileArchieve setting screenshot into forum so that I can get your situation precisely.</description>
    <pubDate>Fri, 19 Jul 2013 14:54:47 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-07-19T14:54:47Z</dc:date>
    <item>
      <title>[resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330908#M99944</link>
      <description>Hi All,&lt;BR /&gt;I have a tWaitForFile component in my job.I want to pass the name of the file that is already present or created after the execution to a subjob. I used a context variable and set the value as ((String)globalMap.get("tWaitForFile_1_PRESENT_FILE")).It is working fine if the file is already present.But fails if the file is created after starting the execution.I need to run the subjob if the file is present or created later.How can i pass the name of the current file name?Please help.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sreedevi</description>
      <pubDate>Wed, 17 Jul 2013 10:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330908#M99944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T10:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330909#M99945</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;It is working fine if the file is already present.But fails if the file is created after starting the execution.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;What's the error? How did you choose your "Trigger action when"? Is it "a file is created or updated or deleted"? Did you check out the option "Wait for file to be released" in Advanced setting? 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tWaitForFile&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tWaitForFile&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 17 Jul 2013 10:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330909#M99945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T10:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330910#M99946</link>
      <description>Hi Sabrina,
&lt;BR /&gt;The error is a null pointer exception in the subjob component.
&lt;BR /&gt;Exception in component tFileUnarchive_1
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at data_test.db_process_0_1.db_process.tFileUnarchive_1Process(db_process.java:1220).
&lt;BR /&gt;The tWaitForFile_2 component is having the following settings.
&lt;BR /&gt;Include Present File- checked
&lt;BR /&gt;Trigger Action when- a file is created
&lt;BR /&gt;Then - Exit loop
&lt;BR /&gt;In Advanced ,Wait For file to be released is checked.
&lt;BR /&gt;In the tRunJob component,a context variable is set as CSV_File=((String)globalMap.get("tWaitForFile_2_PRESENT_FILE")).
&lt;BR /&gt;In the subjob,the tFileUnarchive_1 is having Archive File as context.CSV_File.
&lt;BR /&gt;What could be the issue?
&lt;BR /&gt;thanks,
&lt;BR /&gt;Sreedevi</description>
      <pubDate>Wed, 17 Jul 2013 11:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330910#M99946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330911#M99947</link>
      <description>Hi, 
&lt;BR /&gt;How did you set your tFileUnarchive? 
&lt;BR /&gt;I think you should use ((String)globalMap.get("tWaitForFile_1_FILENAME")). 
&lt;BR /&gt;See my screenshots 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEko.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155238i10F532F2F20B6DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEko.png" alt="0683p000009MEko.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEo1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137580i85E383360EDA1240/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEo1.png" alt="0683p000009MEo1.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 17 Jul 2013 12:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330911#M99947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330912#M99948</link>
      <description>Hi Sabrina,
&lt;BR /&gt;I used ((String)globalMap.get("tWaitForFile_1_FILENAME")) as you suggested.Then am getting the error 
&lt;BR /&gt;Exception in component tFileUnarchive_1
&lt;BR /&gt;java.io.FileNotFoundException: Sample1.zip (The system cannot find the file specified).
&lt;BR /&gt;The file is available in the folder.I doubt its just giving the filename alone without the path.Is it like that?Please confirm.
&lt;BR /&gt;I have appended path to the filename like "D:/data-testing/NewFiles/"+((String)globalMap.get("tWaitForFile_1_FILENAME")).Then its working.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sreedevi</description>
      <pubDate>Thu, 18 Jul 2013 05:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330912#M99948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T05:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330913#M99949</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;The file is available in the folder.I doubt its just giving the filename alone without the path.Is it like that?Please confirm.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;((String)globalMap.get("tWaitForFile_1_FILENAME")) is just the name of file, such as, "test.txt" without path. 
&lt;BR /&gt;((String)globalMap.get("tWaitForFile_1_CREATED_FILE")) provide the path and name together,such as,"D:/test.txt".
&lt;BR /&gt;For your issue, did you set Directory in tFileArchieve? Could you please post your tFileArchieve setting screenshot into forum so that I can get your situation precisely.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 18 Jul 2013 07:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330913#M99949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330914#M99950</link>
      <description>Hi Sabrina,
&lt;BR /&gt;The issue is solved after putting the directory with ((String)globalMap.get("tWaitForFile_1_FILENAME")).
&lt;BR /&gt;Thank you very much for your help.
&lt;BR /&gt;Sreedevi</description>
      <pubDate>Thu, 18 Jul 2013 12:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330914#M99950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330915#M99951</link>
      <description>Hi, &lt;BR /&gt;You are welcome. Thanks for your feedback and feel free post your issue on forum.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 19 Jul 2013 04:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330915#M99951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-19T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Passing the created or present file of tWaitForFile to a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330916#M99952</link>
      <description>Could you please post your tFileArchieve setting screenshot into forum so that I can get your situation precisely.</description>
      <pubDate>Fri, 19 Jul 2013 14:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-the-created-or-present-file-of-tWaitForFile-to/m-p/2330916#M99952</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-19T14:54:47Z</dc:date>
    </item>
  </channel>
</rss>

