<?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: Downloading files and uploading into tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214435#M11275</link>
    <description>&lt;P&gt;I think you'll probably need to upload a screenshot of your job so far for anyone to advise further.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 10:16:45 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2019-01-25T10:16:45Z</dc:date>
    <item>
      <title>Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214431#M11271</link>
      <description>&lt;P&gt;I have 15 files that need to be downloaded and then loaded into database tables.&amp;nbsp; The file names don't match the table names.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It seems like I should create a hash so I used tJava to:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;java.util.Map&amp;lt;String, String&amp;gt; files2tables = new java.util.HashMap&amp;lt;String, String&amp;gt;();&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;files2tables.put("file1", "Table1");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files2tables.put("file2", "Table2");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files2tables.put("file3", "Table3");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Put this into globalMap:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;globalMap.put("files2tables", files2tables);&lt;/P&gt; 
&lt;P&gt;Then an array for just the filenames (keys):&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;globalMap.put("files", files2tables.keySet());&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then I wanted to tForeach, but I can't seem to get the list of files to process into the tForeach.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a better way to approach this problem?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;jji&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214431#M11271</guid>
      <dc:creator>imholzj</dc:creator>
      <dc:date>2019-01-23T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214432#M11272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create the list of files using a tFixedFlow component (if they really are fixed file names to table names), and then connect in a tFlowToIterate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will loop through each file/table name pair and allow you to read it in and load it into a table. You havent mentioned whether they are the same schema, so I've assumed they are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214432#M11272</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-01-23T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214433#M11273</link>
      <description>Hi, 
&lt;BR /&gt;My way of doing these is creating a static lookup table in db with filenames and equivalent table names. Take the count of files and use it for the loop. Then in each iteration read the file name from table and its equivalent table name store it in context, then use this context values to insert the data from file to table. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Ramachandran B</description>
      <pubDate>Wed, 23 Jan 2019 17:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214433#M11273</guid>
      <dc:creator>brama</dc:creator>
      <dc:date>2019-01-23T17:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214434#M11274</link>
      <description>&lt;P&gt;Thanks, that's working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to wait until I download all the files before I continue, what do I test for?&amp;nbsp; Does the tFlowToIterate set a global var when done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jji&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214434#M11274</guid>
      <dc:creator>imholzj</dc:creator>
      <dc:date>2019-01-24T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214435#M11275</link>
      <description>&lt;P&gt;I think you'll probably need to upload a screenshot of your job so far for anyone to advise further.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 10:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214435#M11275</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-01-25T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading files and uploading into tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214436#M11276</link>
      <description>&lt;P&gt;I'd like to download all my files before I move on to loading them into the DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to complete this IF condition with the size of the tFixedFlowInput_1 Array?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or is there another "Talend way" of doing this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;jji&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2bW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135050iB2BABB1AA902EACC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2bW.png" alt="0683p000009M2bW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 14:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Downloading-files-and-uploading-into-tables/m-p/2214436#M11276</guid>
      <dc:creator>imholzj</dc:creator>
      <dc:date>2019-01-25T14:53:19Z</dc:date>
    </item>
  </channel>
</rss>

