<?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 SFTP multiple files using tFTPPut in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2292588#M65647</link>
    <description>&lt;P&gt;I'm having problems in a job that aims to take different "xml" files from a local directory and send them to a SFTP server.  &lt;/P&gt;&lt;P&gt;The problem is that when I run the job I don't get any kind of error. The TFTPPut component theoretically works fine but does not really send the files to the SFTP server. It is very strange because I don't get any permissions error, or that the files are not found.&lt;/P&gt;&lt;P&gt;Tried debugging the job but couldn't understand where the actual problem is.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The TFileList_2 component reads the files in the directory well, as I have added a tJava that prints the files and the directory path and displays them correctly.&lt;/LI&gt;&lt;LI&gt;The "If" link has the following condition:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;I&gt;!Relational.ISNULL((((String)globalMap.get("tFileList_2_CURRENT_FILE"))))&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Finally I use the tFTPPut component to send the files from the local directory to the SFTP server (using the connections of the tFTPConnection_1 element). Overwrite option is chosen. Moreover, the "FileMask" used is  "*_ACA.xml" because all the files end like it. &lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I have added a Tjava after the tFTPPut component with the following print:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;1)System.out.println((((String)globalMap.get("tFTPPut_2_CURRENT_STATUS")));&lt;/P&gt;&lt;P&gt;2)System.out.println(((String)globalMap.get("tFTPPut_2_TRANSFER_MESSAGES")));&lt;/P&gt;&lt;P&gt;3)System.out.println((((String)globalMap.get("tFTPPut_2_ERROR_MESSAGE"))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this answers for this 3 prints:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) No file transfered.&lt;/P&gt;&lt;P&gt;2) 50 files have been uploaded.&lt;/P&gt;&lt;P&gt;3)/public/CicleAigua/ATLL/ATLL_LIMS_in/*_ACA.xml (where there is the path of the SFTPServer / Filemask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Job Capture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLDIeAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154672i15F9E3AF3C943205/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLDIeAAP.png" alt="0695b00000PLDIeAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;tFTPPut component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLDItAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130995iFD972E292EAC10C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLDItAAP.png" alt="0695b00000PLDItAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:06:17 GMT</pubDate>
    <dc:creator>JRoselló</dc:creator>
    <dc:date>2024-11-15T23:06:17Z</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/2292588#M65647</link>
      <description>&lt;P&gt;I'm having problems in a job that aims to take different "xml" files from a local directory and send them to a SFTP server.  &lt;/P&gt;&lt;P&gt;The problem is that when I run the job I don't get any kind of error. The TFTPPut component theoretically works fine but does not really send the files to the SFTP server. It is very strange because I don't get any permissions error, or that the files are not found.&lt;/P&gt;&lt;P&gt;Tried debugging the job but couldn't understand where the actual problem is.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The TFileList_2 component reads the files in the directory well, as I have added a tJava that prints the files and the directory path and displays them correctly.&lt;/LI&gt;&lt;LI&gt;The "If" link has the following condition:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;I&gt;!Relational.ISNULL((((String)globalMap.get("tFileList_2_CURRENT_FILE"))))&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Finally I use the tFTPPut component to send the files from the local directory to the SFTP server (using the connections of the tFTPConnection_1 element). Overwrite option is chosen. Moreover, the "FileMask" used is  "*_ACA.xml" because all the files end like it. &lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I have added a Tjava after the tFTPPut component with the following print:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;1)System.out.println((((String)globalMap.get("tFTPPut_2_CURRENT_STATUS")));&lt;/P&gt;&lt;P&gt;2)System.out.println(((String)globalMap.get("tFTPPut_2_TRANSFER_MESSAGES")));&lt;/P&gt;&lt;P&gt;3)System.out.println((((String)globalMap.get("tFTPPut_2_ERROR_MESSAGE"))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this answers for this 3 prints:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) No file transfered.&lt;/P&gt;&lt;P&gt;2) 50 files have been uploaded.&lt;/P&gt;&lt;P&gt;3)/public/CicleAigua/ATLL/ATLL_LIMS_in/*_ACA.xml (where there is the path of the SFTPServer / Filemask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Job Capture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLDIeAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154672i15F9E3AF3C943205/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLDIeAAP.png" alt="0695b00000PLDIeAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;tFTPPut component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLDItAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130995iFD972E292EAC10C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLDItAAP.png" alt="0695b00000PLDItAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2292588#M65647</guid>
      <dc:creator>JRoselló</dc:creator>
      <dc:date>2024-11-15T23:06:17Z</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/2292589#M65648</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;You are using tFileList to iterate each file, so you should set the current file name in the FileMask field of tFTPPut2, &lt;/P&gt;&lt;P&gt;(String)globalMap.get("tFileList_1_CURRENT_FILE")&lt;/P&gt;&lt;P&gt;and change the job to:&lt;/P&gt;&lt;P&gt;...tFileList--iterate--tFTPPUT2.&lt;/P&gt;&lt;P&gt;use iterate link instead of runIf, otherwise, it will only put the last file. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't use tFileList in the job, just set the filemask as "*_ACA.xml" to match all files, check the 'Use Perl Regex....' box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 06:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2292589#M65648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-21T06:05:53Z</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/2292590#M65649</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said, I've changed the FileMask field of the tFTPPut2 with the current file name (String)globalMap.get("tFileList_1_CURRENT_FILE"). I've added to an "Iterate" between the tFileList_1 and tFTPPut_2. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is almost solved, but I still have a problem. Some of the file names contain the character "(" and ")". Because of this, in the iteration, the variable (String)globalMap.get("tFileList_1_CURRENT_FILE") doesn't get the name right and fails. I get the error "No matches found for (the name of the file containing parentheses).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I could avoid the issue of this type of character in filenames?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job capture:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLSAGAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152298i09D002DF8CD05C35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLSAGAA5.png" alt="0695b00000PLSAGAA5.png" /&gt;&lt;/span&gt;tFTPPut component:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PLSAQAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131543i7B512AEE94B89DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PLSAQAA5.png" alt="0695b00000PLSAQAA5.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SFTP-multiple-files-using-tFTPPut/m-p/2292590#M65649</guid>
      <dc:creator>JRoselló</dc:creator>
      <dc:date>2022-03-21T08:45:27Z</dc:date>
    </item>
  </channel>
</rss>

