<?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 Get filename from tfileinputexcel in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302951#M74880</link>
    <description>Hello.
&lt;BR /&gt;I have a tfileinputexcel component and I see the variable that contains the filename is called FILENAME
&lt;BR /&gt;I use ((String)globalMap.get("tFileInputExcel_1_FILENAME")) in a field in tmap component but it doesnt work.
&lt;BR /&gt;Any help?</description>
    <pubDate>Wed, 09 Oct 2013 08:44:24 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-10-09T08:44:24Z</dc:date>
    <item>
      <title>Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302951#M74880</link>
      <description>Hello.
&lt;BR /&gt;I have a tfileinputexcel component and I see the variable that contains the filename is called FILENAME
&lt;BR /&gt;I use ((String)globalMap.get("tFileInputExcel_1_FILENAME")) in a field in tmap component but it doesnt work.
&lt;BR /&gt;Any help?</description>
      <pubDate>Wed, 09 Oct 2013 08:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302951#M74880</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-09T08:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302952#M74881</link>
      <description>Hi, &lt;BR /&gt;Please show us your job screenshots so that we can see if there is issue in it. &lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 09 Oct 2013 09:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302952#M74881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-09T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302953#M74882</link>
      <description>I think there's no need for screenshots, it's very simple, i'll explain better:
&lt;BR /&gt;tFileInputExcel_1 ------&amp;gt; tmap -------&amp;gt; tlogrow
&lt;BR /&gt;My excel file has 5 columns, so in tmap I put that 5 columns in an output as 5 different fields, but I want to be 6 fields instead 5, and in the 6th field (string type) I want to put the excel filename so I tried with ((String)globalMap.get("tFileInputExcel_1_FILENAME")) but it didn't work
&lt;BR /&gt;Thanks for the help</description>
      <pubDate>Thu, 10 Oct 2013 10:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302953#M74882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-10T10:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302954#M74883</link>
      <description>Hi, 
&lt;BR /&gt;Yes it is simple workflow. I have design a demo job but didn't find ((String)globalMap.get("tFileInputExcel_1_FILENAME")) instead ((String)globalMap.get("tFileInputExcel_1_CURRENT_SHEET")). 
&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="0683p000009MBOC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149537i948E3F7DBB658148/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBOC.png" alt="0683p000009MBOC.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQ7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133180i1A41B6E06030EAED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQ7.png" alt="0683p000009MBQ7.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136579i53817EC9A719BD4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQC.png" alt="0683p000009MBQC.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 10 Oct 2013 10:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302954#M74883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-10T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302955#M74884</link>
      <description>Yes, but current_sheet isn't what I need... 
&lt;BR /&gt;Look at the image below, in english it means "Attached variable for this parameter is: __FILENAME__" , How can I use it? Or is it something different from what I think? 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQH.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148054i85D3FC7AE6D21B55/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQH.jpg" alt="0683p000009MBQH.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 10 Oct 2013 11:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302955#M74884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-10T11:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302956#M74885</link>
      <description>Hi, 
&lt;BR /&gt;There is no a global variable about file name for tFileInputExcel, you can press ctrl blank space to open the list of the global variables and see which global variables are available. 
&lt;BR /&gt;In this case, you define a context variable (eg: call it as filename) in the job, and set the file name of tFileInputExcel with context variable, for example: "D:/file/" context.filename, and then you are able to add a new column on tMap and set its value as context.filename. 
&lt;BR /&gt;Please see the online document 
&lt;A href="https://help.talend.com/search/all?query=How+to+centralize+contexts+variables&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;How to centralize contexts and variables&lt;/A&gt; the section"How to use variables in a Job". 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 10 Oct 2013 11:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302956#M74885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-10T11:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302957#M74886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting such filename ~$Bank_ExcelFile.xlsx when I fetch with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;context.filename = ((String)globalMap.get("tFileList_1_CURRENT_FILE"));&lt;/P&gt;
&lt;P&gt;I don't need&amp;nbsp;&lt;SPAN&gt;~$&amp;nbsp; &amp;nbsp;garbage value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Can you give me any suggestion on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302957#M74886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302958#M74887</link>
      <description>&lt;P&gt;Shame on you guys from Talend Community. You just can´t even suggest some for a simple problem.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 20:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302958#M74887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-07T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302959#M74888</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LR1MAAW"&gt;@dtsleite&lt;/A&gt;, What is your problem? Can you share your issue?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 01:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2302959#M74888</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-08T01:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get filename from tfileinputexcel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2524720#M147791</link>
      <description>&lt;P&gt;It is over 10 years since this was posted, but I did want to make a comment, in case others come here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel has some features to support 'unsaved' changes.&amp;nbsp; When accessing an Excel file in this state, Excel 'creates' a fake document, prefixed with the ~$ characters.&amp;nbsp; It isn't a real file.&amp;nbsp; I have had to put code in certain processes to IGNORE any files that start with ~$.&amp;nbsp; It is especially problematic since we process a lot of Excel files created by end-users.&amp;nbsp; We often get versions of the file that include this ~$Filename.xlsx.&lt;/P&gt;&lt;P&gt;Just ignore them, only process Excel files that do not start with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 16:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-filename-from-tfileinputexcel/m-p/2524720#M147791</guid>
      <dc:creator>wow0609</dc:creator>
      <dc:date>2025-07-18T16:50:07Z</dc:date>
    </item>
  </channel>
</rss>

