<?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 Import csv (in zip) file from FTP to Oracle DB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355425#M121176</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am quite new to Talendand need help in completing a simple task which I am not able to figure out&amp;nbsp;myself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirement: Three is a FTP location&amp;nbsp;where 10 files are loaded everyday with the format file1_date, file2_date....etc. I&amp;nbsp;want to get the latest version of each file from FTP and upload them into 10&amp;nbsp;different tables in Oracle DB. File1 goes to Table1, File2 goes to Table2.. and so on. So far this is what I am able to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the latest file from FTP in a local directory using t_FTPGet. This copies latest version of all&amp;nbsp;10 files in a local directory. -&amp;nbsp;this is ok&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;How do I then pick each file and then copy it in&amp;nbsp;relevant tables in oracle db. I&amp;nbsp;already have&amp;nbsp;destination oracle DB connection established and&amp;nbsp;retrieved schema/tables.&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>Wed, 30 May 2018 14:32:58 GMT</pubDate>
    <dc:creator>Gourav_King_of_DataLand</dc:creator>
    <dc:date>2018-05-30T14:32:58Z</dc:date>
    <item>
      <title>Import csv (in zip) file from FTP to Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355425#M121176</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am quite new to Talendand need help in completing a simple task which I am not able to figure out&amp;nbsp;myself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirement: Three is a FTP location&amp;nbsp;where 10 files are loaded everyday with the format file1_date, file2_date....etc. I&amp;nbsp;want to get the latest version of each file from FTP and upload them into 10&amp;nbsp;different tables in Oracle DB. File1 goes to Table1, File2 goes to Table2.. and so on. So far this is what I am able to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the latest file from FTP in a local directory using t_FTPGet. This copies latest version of all&amp;nbsp;10 files in a local directory. -&amp;nbsp;this is ok&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;How do I then pick each file and then copy it in&amp;nbsp;relevant tables in oracle db. I&amp;nbsp;already have&amp;nbsp;destination oracle DB connection established and&amp;nbsp;retrieved schema/tables.&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>Wed, 30 May 2018 14:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355425#M121176</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-05-30T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv (in zip) file from FTP to Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355426#M121177</link>
      <description>&lt;P&gt;You have made the harder, it remains the least funny.&lt;/P&gt; 
&lt;P&gt;You need a subjob per file to read the content and push to tOracleOutput to insert record into the corresponding table:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.png" style="width: 378px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LykY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153892i8CF4CAC0DA101136/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LykY.png" alt="0683p000009LykY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This suppose you don't need any transformation and the volume is not too high (so you don't need Oracle bulk component).&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 15:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355426#M121177</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-30T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv (in zip) file from FTP to Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355427#M121178</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the reply, the process has to run everyday and the file name will&amp;nbsp;change today file1_20180530, tomorrow file1_20180531 and so on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did something similar to what you suggested already&amp;nbsp;&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="Capture3.JPG" style="width: 588px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyjH.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138805i2755FFED546C8205/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyjH.jpg" alt="0683p000009LyjH.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;thing that I&amp;nbsp;am not able to figure out is how to get&amp;nbsp;the file name dynamically in the "File name/Stream"&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="Capture4.JPG" style="width: 698px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lykd.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156235i70C77BB2F622FDA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lykd.jpg" alt="0683p000009Lykd.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;One way I thought of is to have some component before tFileInputDelimited that renames file to a fixed name always&amp;nbsp;and once the data is successfully copied in database&amp;nbsp;delete the file so that directory is ready to be used for next day. I am not able to figure out this either - how to change the file name in this flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know your suggestions what can be the optimal way of doing this.&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>Wed, 30 May 2018 15:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355427#M121178</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-05-30T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv (in zip) file from FTP to Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355428#M121179</link>
      <description>&lt;P&gt;1rst, if you get a zip file, you have to unzip it to get the text file.&lt;/P&gt;&lt;P&gt;2nd, you can use a tFileList to iterate over the file list and retrieve the current file name in a global variable such as "tFileList_1_CURRENT_FILE" or "tFileList_1_CURRENT_FILEPATH" (same with full pathname).&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 16:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355428#M121179</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-30T16:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import csv (in zip) file from FTP to Oracle DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355429#M121180</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate the help. I tried what you suggested and it worked, however need your help to figure out one thing&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;About the "&lt;U&gt;1rst, if you get a zip file, you have to unzip it to get the text file&lt;/U&gt;" - there is an option in tFileInputDelimated on the basic setting at the end "&lt;STRONG&gt;Uncompress as zip file&lt;/STRONG&gt; ". I checked that and it allowed me&amp;nbsp;to upload data from zip files without needing them to&amp;nbsp;unzip in advance.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;job looks like&amp;nbsp;&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="Capture5.JPG" style="width: 653px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lylb.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134864iEE8E7CD07E7A54D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lylb.jpg" alt="0683p000009Lylb.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Setting as following&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tFTPGet_1&lt;/STRONG&gt; - FTP login details as required .. file Filemask as&amp;nbsp;required&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;tFileList_1&lt;/STRONG&gt; -&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;This works&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture7.JPG" style="width: 757px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxMh.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136166i3009D64D20C09324/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxMh.jpg" alt="0683p000009LxMh.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;This Doesn't&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture6.JPG" style="width: 622px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lylg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148852i6F6CB54F42D5A694/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lylg.jpg" alt="0683p000009Lylg.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;How do I get the file name with path for the current file downloaded&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 08:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-csv-in-zip-file-from-FTP-to-Oracle-DB/m-p/2355429#M121180</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-05-31T08:55:28Z</dc:date>
    </item>
  </channel>
</rss>

