<?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: Add column with CSV name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285677#M59299</link>
    <description>&lt;P&gt;This is the error I am Getting.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")) and the error, how ever when i used&amp;nbsp;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) it did output the file name.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lupo"&gt;NAME.PNG&lt;/A&gt;</description>
    <pubDate>Sat, 23 Feb 2019 15:09:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-23T15:09:31Z</dc:date>
    <item>
      <title>Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285670#M59292</link>
      <description>&lt;P&gt;I have been tasked to perform ETL on a data set that has 10 CSV files with the same information, its just from different countries.&lt;/P&gt;
&lt;P&gt;My Question is, how would you populate an extra column in your Dimension table with the name of the CSV file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285670#M59292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285671#M59293</link>
      <description>Can you please explain your query wih example? There could be different understandings of your query.&lt;BR /&gt;&lt;BR /&gt;Are you using tfilelist in your job?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285671#M59293</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-22T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285672#M59294</link>
      <description>&lt;P&gt;I have different CSV files with their name being different countries, i am using a tfilelist and them connecting tat to a tFileInputDelimited them mapping to my dimensinon table, where i want to create a new row titles country and populate it with the csv file name, e.g. Canada.csv to a column where all the records belonging to the Canada table had Canada in that column.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285672#M59294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-22T20:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285673#M59295</link>
      <description>Add a tjavarow or tmap after your inputfilecomponent. 
&lt;BR /&gt; 
&lt;BR /&gt;Add additional col filename , map it to expression of filename which you 
&lt;BR /&gt;used in input component. 
&lt;BR /&gt; 
&lt;BR /&gt;Output_row.Filename = globalvar of tfilelist_1_CURRENT_FILE 
&lt;BR /&gt; 
&lt;BR /&gt;You could remove extensions but split command 
&lt;BR /&gt;Filename.split(“.”)[0] 
&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2019 20:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285673#M59295</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-22T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285674#M59296</link>
      <description>&lt;P&gt;Hi Shriya,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please refer below similar solution to add file name for record.&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="FileNameJob.PNG" style="width: 672px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3MD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141716i5172AEFEBEF42313/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3MD.png" alt="0683p000009M3MD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tMap Setting:&lt;/P&gt; 
&lt;P&gt;Add below global Variable of tFileList to get the current file name&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap Setting" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2wM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150453iF7DAB08C97FF3FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2wM.png" alt="0683p000009M2wM.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tMap Setting&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Kindly let me know whether it answers your question or not.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank You,&lt;/P&gt; 
&lt;P&gt;Sonali Jagtap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285674#M59296</guid>
      <dc:creator>sonalijagtap</dc:creator>
      <dc:date>2019-02-22T21:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285675#M59297</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did that but I am outputting to a tMsSqlOutput, it is populating the row with a null.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 11:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285675#M59297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-23T11:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285676#M59298</link>
      <description>Can you please put tlogrow before tmssqloutput and check if it is coming
&lt;BR /&gt;null.
&lt;BR /&gt;
&lt;BR /&gt;And put sceenshot of your job. It must be small issue
&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Feb 2019 11:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285676#M59298</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-23T11:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285677#M59299</link>
      <description>&lt;P&gt;This is the error I am Getting.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")) and the error, how ever when i used&amp;nbsp;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) it did output the file name.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lupo"&gt;NAME.PNG&lt;/A&gt;</description>
      <pubDate>Sat, 23 Feb 2019 15:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285677#M59299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-23T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285678#M59300</link>
      <description>&lt;P&gt;thats correct&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;current_filepath should be used in tfileinput component as it has absolute filename including path.below link will help.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/s88XQGiwRClewQ1MPT6I2A" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/s88XQGiwRClewQ1MPT6I2A&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;however to get only file name , you could use current_file globalvar.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 15:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285678#M59300</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-02-23T15:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with CSV name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285679#M59301</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;I'm fairly new to Talend can you please explain how i would use&amp;nbsp;&lt;SPAN&gt;current_file globalvar to give the column name just the file name and not the path.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 19:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-column-with-CSV-name/m-p/2285679#M59301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-23T19:13:02Z</dc:date>
    </item>
  </channel>
</rss>

