<?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: Filename context in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317386#M87835</link>
    <description>&lt;P&gt;Thanks for the reponse to both of you,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I had already tried the tJava component via OnsubJob Ok tho, I still have the same error where my tFileInputXML is not interpreting my context value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa.png" style="width: 897px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxKz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136401iC3206536563CAA57/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxKz.png" alt="0683p000009LxKz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see it looks like he doesnt get the TalendDate fonction and use it as a string. (Basically : syntax wrong)&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputxml.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxV9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129764i512BABE2368AC146/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxV9.png" alt="0683p000009LxV9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 13:31:25 GMT</pubDate>
    <dc:creator>daez</dc:creator>
    <dc:date>2018-05-09T13:31:25Z</dc:date>
    <item>
      <title>Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317380#M87829</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to get a file from FTP which is composed of a date looking like :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;yyyyMMdd_hhmm&amp;nbsp;&lt;SPAN&gt;(exemple&amp;nbsp;: *TEXT*_20180509_1030.xml) and then turn it to CSV.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Since there will be file everyday, i planned to add a context variable and use it in the file name.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa.png" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxUo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156866i0BDC4364A9390530/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxUo.png" alt="0683p000009LxUo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Here is what it looks like :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;New context : "FTP_GET "&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;value :&amp;nbsp;&amp;nbsp;"TEXT"+TalendDate.formatDate("yyyyMMdd_hhmm",TalendDate.getCurrentDate())+".xml"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My FTPGET is working fine, tho, my TFileInputXML doesnt understand my path, what i'm missing?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;FileName : "C:/Users/......../"+context.FTP_GET.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Another question, must I write the file from FTP GET on my disk and then get it back with my tFileInputXML ? Can't i keep the data on Talend and not write then on my disk?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer!&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 10:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317380#M87829</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-09T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317381#M87830</link>
      <description>&lt;P&gt;For sure, your tFileInputXML must contain the full pathname for your XML file (including directory).&lt;/P&gt;&lt;P&gt;For the 2nd question, no can't. You must get the file locally, then you can read it using&amp;nbsp;&lt;SPAN&gt;tFileInputXML&amp;nbsp;except if the file is stored on a shared drive (probably not if you use ftp).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 10:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317381#M87830</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-09T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317382#M87831</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;and thanks for the reply !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the second answer. About the first one, I don't get it. My tFileInputXML does contain my fullpathname, its just that it doesnt use my context result and returning it as an error (syntax incorrect, see screenshot). I must do something wrong when i use context in the settings ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;context : FTP_GET , value :&amp;nbsp;"Text"+TalendDate.formatDate("yyyyMMdd_hhmm",TalendDate.getCurrentDate())+".xml"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Filename : " C:/"+context.FTP_GET "&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 11:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317382#M87831</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-09T11:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317383#M87832</link>
      <description>&lt;P&gt;Can you share your tFTPGet settings and the piece of code where you set the context variable value.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 12:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317383#M87832</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-09T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317384#M87833</link>
      <description>&lt;P&gt;This is easily fixed. Your problem is caused by trying to use Java to set the context variable in your Contexts tab. You cannot do this. If you want to set a Context variable using code, you can add a tJava component before your tFileList, connect it via an OnSubJobOK link and add this code to it....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;context.FTP_GET = "Text"+TalendDate.formatDate("yyyyMMdd_hhmm",TalendDate.getCurrentDate())+".xml";&lt;/PRE&gt;
&lt;P&gt;This MUST be done in a prior subjob to the subjob you are going to use it for a filename&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 12:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317384#M87833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-09T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317385#M87834</link>
      <description>&lt;P&gt;I just read the other part of your question. You can stream the file data from its source location, but it is&amp;nbsp; trickier. You will need to the tFileFetch (&lt;A href="https://help.talend.com/reader/9q55KsfASqX0qY4GVhEDNQ/pfuQtcwLBNAvHnxMDbe2ag" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/9q55KsfASqX0qY4GVhEDNQ/pfuQtcwLBNAvHnxMDbe2ag&lt;/A&gt;) and make use of the "&lt;EM&gt;Use cache to save resource" &lt;SPAN&gt;make.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This tutorial might help (&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/2kKyGJVxys~Zwh8HsNLtaQ)&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/2kKyGJVxys~Zwh8HsNLtaQ)&amp;nbsp;&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 12:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317385#M87834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-09T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317386#M87835</link>
      <description>&lt;P&gt;Thanks for the reponse to both of you,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I had already tried the tJava component via OnsubJob Ok tho, I still have the same error where my tFileInputXML is not interpreting my context value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aaa.png" style="width: 897px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxKz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136401iC3206536563CAA57/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxKz.png" alt="0683p000009LxKz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see it looks like he doesnt get the TalendDate fonction and use it as a string. (Basically : syntax wrong)&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputxml.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxV9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129764i512BABE2368AC146/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxV9.png" alt="0683p000009LxV9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317386#M87835</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-09T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317387#M87836</link>
      <description>&lt;P&gt;You are not showing enough info. If you tried my solution, it WILL have worked. So can you show me precisely how you tried it (hiding nothing.....there are no spies here trying to work out information about you or your organisation via filepaths) please?&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317387#M87836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-09T13:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317388#M87837</link>
      <description>&lt;P&gt;Edditing my response here, I tried to change some stuff &amp;amp; finally worked by linking the tJava to the tFileInputXML instead of tFTPGet ... No idea why but yet its working, resolved then, thanks for the tJava tricks &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;.&lt;BR /&gt;&lt;BR /&gt;Kindly&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317388#M87837</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2018-05-09T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filename context</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317389#M87838</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;P&gt;&lt;SPAN&gt;Another question, must I write the file from FTP GET on my disk and then get it back with my tFileInputXML ? Can't i keep the data on Talend and not write then on my disk?&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;I use tBufferOutput to store all data from a file, then use it in the same Job to perform operations. In this example I filter the data on Buffer several times to assign values in different columns depending on the filtered data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You may want to set a generic schema on both tBufferOutput and tBufferInput to ensure your columns match.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tBufferOutput" style="width: 405px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2r0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152487i79977AB22A28FED2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2r0.png" alt="0683p000009M2r0.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tBufferOutput&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuVH"&gt;o.png&lt;/A&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filename-context/m-p/2317389#M87838</guid>
      <dc:creator>kynio</dc:creator>
      <dc:date>2019-02-27T18:24:34Z</dc:date>
    </item>
  </channel>
</rss>

