<?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: File Push/Pull from remote SFTP servers in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208023#M7423</link>
    <description>Looking at your first screenshot, I suspect your FTP Get and Put are not synching with your iterate properly - because they're using OnComponentOK - meaning they're not part of the loop subjob. How about placing all  the FTP components in a child job (using tRunJob to connect from main) and connect that last iterate to the tRunJob? Then pass any variables to the child job using contexts or global variables. That way, for each loop, you're processing the FTP components in synch for that loop id.</description>
    <pubDate>Mon, 24 Mar 2014 13:42:35 GMT</pubDate>
    <dc:creator>willm1</dc:creator>
    <dc:date>2014-03-24T13:42:35Z</dc:date>
    <item>
      <title>File Push/Pull from remote SFTP servers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208022#M7422</link>
      <description>I have a sub job, which create sftp connections and perform get and put operations. sftp connection details are passed as a delimited string from the main job to sub job. 
&lt;BR /&gt;Eg : 
&lt;BR /&gt;bar|moonshine|bar|bar1234|request|response 
&lt;BR /&gt;maa|moonshine|maa|maa1234|request|response 
&lt;BR /&gt;First column - target identification 
&lt;BR /&gt;Second column - target sftp server 
&lt;BR /&gt;Third column - target user 
&lt;BR /&gt;Fourth column - target user password 
&lt;BR /&gt;Fifth column - download directory (to local) 
&lt;BR /&gt;Sixth column - upload directory (from local) 
&lt;BR /&gt; 
&lt;BR /&gt;Sub job will iterate the connection details. if it's a new target it will create the local directory as follows 
&lt;BR /&gt;+ sftp 
&lt;BR /&gt; +-- bar 
&lt;BR /&gt; + -- request 
&lt;BR /&gt; + -- response 
&lt;BR /&gt; 
&lt;BR /&gt;then it will create corresponding sftp connection and do GET operation from remote request to local request directory. 
&lt;BR /&gt;once it finish it will do PUT operation from local response to remote response directory. 
&lt;BR /&gt;This job is working perfectly for single target. when multiple target presents, i'm getting following exception. 
&lt;BR /&gt;Exception in component tFTPPut_1 
&lt;BR /&gt;2: No such file 
&lt;BR /&gt; at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2833) 
&lt;BR /&gt; at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2185) 
&lt;BR /&gt; at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2202) 
&lt;BR /&gt; at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:2159) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.tFTPPut_1Process(RemoteFileSync.java:1375) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.tFTPGet_1Process(RemoteFileSync.java:1182) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.tLoop_1Process(RemoteFileSync.java:847) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.tJava_1Process(RemoteFileSync.java:506) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.runJobInTOS(RemoteFileSync.java:1693) 
&lt;BR /&gt; at externalbatchupdate.remotefilesync_0_1.RemoteFileSync.runJob(RemoteFileSync.java:1527) 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate.tRunJob_2Process(ExternalEventsBatchUpdate.java:902) 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate.tJava_2Process(ExternalEventsBatchUpdate.java:786) 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate$6.run(ExternalEventsBatchUpdate.java:5170) 
&lt;BR /&gt;Exception in component tRunJob_2 
&lt;BR /&gt;java.lang.RuntimeException: Child job running failed 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate.tRunJob_2Process(ExternalEventsBatchUpdate.java:922) 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate.tJava_2Process(ExternalEventsBatchUpdate.java:786) 
&lt;BR /&gt; at externalbatchupdate.externaleventsbatchupdate_0_1.ExternalEventsBatchUpdate$6.run(ExternalEventsBatchUpdate.java:5170) 
&lt;BR /&gt; 
&lt;BR /&gt;I have tested this job with jcraft 1.5 as well. still gettting the same error. 
&lt;BR /&gt;For your reference i am attaching the sub job screen cast herewith. 
&lt;BR /&gt;Appreciate, a response from anyone. 
&lt;BR /&gt;Thanks n Regards, 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131164iEA2CE2D23C39F023/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMf.png" alt="0683p000009MDMf.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD8j.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140254i181140AFC079E1FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD8j.png" alt="0683p000009MD8j.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134737i53631F77FD4F2259/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJh.png" alt="0683p000009MDJh.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145205i22A32A4833427DE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMk.png" alt="0683p000009MDMk.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128574iCD36AF1328781EBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMp.png" alt="0683p000009MDMp.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDIj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154608iC3AA99AA5E886206/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDIj.png" alt="0683p000009MDIj.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDMu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142556i9FCD08ADC303F804/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDMu.png" alt="0683p000009MDMu.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208022#M7422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-24T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: File Push/Pull from remote SFTP servers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208023#M7423</link>
      <description>Looking at your first screenshot, I suspect your FTP Get and Put are not synching with your iterate properly - because they're using OnComponentOK - meaning they're not part of the loop subjob. How about placing all  the FTP components in a child job (using tRunJob to connect from main) and connect that last iterate to the tRunJob? Then pass any variables to the child job using contexts or global variables. That way, for each loop, you're processing the FTP components in synch for that loop id.</description>
      <pubDate>Mon, 24 Mar 2014 13:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208023#M7423</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-24T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: File Push/Pull from remote SFTP servers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208024#M7424</link>
      <description>Thanks willm, your solution did work</description>
      <pubDate>Tue, 25 Mar 2014 04:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/File-Push-Pull-from-remote-SFTP-servers/m-p/2208024#M7424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T04:13:17Z</dc:date>
    </item>
  </channel>
</rss>

