<?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: SFTP multiple files using tFTPPut in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312146#M83121</link>
    <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/7035"&gt;@iamabhishek&lt;/A&gt;,you no need to use tIteratetoFlow,since you can directly connect Iterate flow from tFilelist to tFTPPut and in between you cna use tJava componet to print the current file name.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 03:45:58 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-05-07T03:45:58Z</dc:date>
    <item>
      <title>SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312145#M83120</link>
      <description>&lt;P&gt;Trying to build a solution to transfer files to an FTP server from local on-premise system. Currently the process is only transferring the last file of the lot found from the directory. Tried debugging the job but couldn't understand where the actual problem is.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;What I have tried so far:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Used tFileList to get the list of files for a given directory, given&amp;nbsp;"*.txt" as FileMask.&lt;/P&gt; 
&lt;P&gt;Used tIterateToFlow to iterate through the list of files. The Schema is of a single column "fileName" with the value set as - ((String)globalMap.get("tFileList_1_CURRENT_FILE"))&lt;/P&gt; 
&lt;P&gt;Finally used tFTPPut to SFTP the files to remote directory. Local Directory is set as -&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY")) &amp;amp; FileMask as -&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")). Overwrite is the option chosen.&lt;/P&gt; 
&lt;P&gt;Screenshot of the job -&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFTP-1.JPG" style="width: 305px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/9149i4E41D02D49B696B4/image-size/large?v=1.0&amp;amp;px=999" title="tFTP-1.JPG" alt="tFTP-1.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks in advance for any kind of help and let me know if more information is required for this.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Platform:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Talend Open Studio for Data Integration Version: 6.5.1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 May 2018 18:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312145#M83120</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-05-06T18:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312146#M83121</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/7035"&gt;@iamabhishek&lt;/A&gt;,you no need to use tIteratetoFlow,since you can directly connect Iterate flow from tFilelist to tFTPPut and in between you cna use tJava componet to print the current file name.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 03:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312146#M83121</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T03:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312147#M83122</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/2468"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;Have tried that too. If we don't use tIterateFlow and directly pass the iteration from tFileList to tFTPPut then only the first file would be retrieved and sent and for the second file there would be en error - "No File Present".&lt;/P&gt;
&lt;P&gt;This is the output when debugged using tJava -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[statistics] connecting to socket on port 3583
[statistics] connected
[trace] connecting to socket on port 5031
[trace] connected
Output.txt
C:/FTP/dir
Sample.txt
C:/FTP/dir
No File Present
[statistics] disconnected
[trace] disconnected&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 05:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312147#M83122</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-05-07T05:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312148#M83123</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;,i have used below way and working for me.check your desing based on this.&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="Untitled.png" style="width: 775px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx6a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131855i0398E627B152BBCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx6a.png" alt="0683p000009Lx6a.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 786px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwvR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158102i61CF672F5989DA1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwvR.png" alt="0683p000009LwvR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312148#M83123</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312149#M83124</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;,below settings also working as expected.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 790px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxSn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147932iDD4E4D79DF222A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxSn.png" alt="0683p000009LxSn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312149#M83124</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312150#M83125</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;Thank you for the solution.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Noticed that you have used "*.txt" as FileMask in the tFTPPut which ensures that it will pull all the files from the&amp;nbsp;CURRENT_FILEDIRECTORY. In that case we don't even need to iterate the files in the directory and we don't need tFileList too.&lt;/P&gt; 
&lt;P&gt;But the desired approach should have been like get the files using tFileList and iterate over the list and using tFTPPut transfer the files. The FileMask should be used in tFileList and whatever the filename is passed in that iteration tFTPPut should use that preferably using - CURRENT_FILE&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312150#M83125</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-05-07T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312151#M83126</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;,you can find my other sceernshot i have used&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")) as file mask in tFTPPut and working fine.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312151#M83126</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312152#M83127</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 803px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxDL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150364iD01E5FA1CCE94C7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxDL.png" alt="0683p000009LxDL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312152#M83127</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312153#M83128</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;, sorry I might have overlooked your reply.&lt;/P&gt; 
&lt;P&gt;Yes, your solution is working perfectly for the list of files in local directory much appreciated.&lt;/P&gt; 
&lt;P&gt;One thing I noticed here is and the reason for my process not working was -&lt;/P&gt; 
&lt;P&gt;I was using tFTPPut --&amp;gt; (on component ok) --&amp;gt; tFTPClose , wherein you have used&lt;/P&gt; 
&lt;P&gt;tFileList --&amp;gt; (on subjob ok) --&amp;gt; tFTPClose which has clicked.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea on this.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312153#M83128</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-05-07T06:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312154#M83129</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;,since you need to design job as i shared in screenshot, other wise in your design first file will be placed and for second file tFTPPUT will fail that connection alreday closed.that you have used on component ok of tFTPPUt to tFTPCLOSE&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312154#M83129</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312155#M83130</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKrZAAW"&gt;@iamabhishek&lt;/A&gt;,please accept solution.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312155#M83130</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T06:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP multiple files using tFTPPut</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312156#M83131</link>
      <description>Thanks for the explanation, makes sense now.</description>
      <pubDate>Mon, 07 May 2018 09:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2312156#M83131</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-05-07T09:05:13Z</dc:date>
    </item>
  </channel>
</rss>

