<?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>question Re: Read files from SFTP server and put file in back using sftp in apache NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/382044#M244473</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108435"&gt;@enam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looks like you have a bad file filter regex in your listSFTP processor configuration.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.*file.*\.xls&lt;/LI-CODE&gt;&lt;P&gt;Above looks for any character for 1 or more characters until is finds the last occurrence of string "file" followed by any character for as many characters until last occurrence of string ".xls".&amp;nbsp; However, all your filenames start with "file" and have no characters before it.&lt;BR /&gt;&lt;BR /&gt;Try modifying your file filter regex by removing the ".*" before "file":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;file.*\.xls&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Right click on processor, select "view state", and then "clear state".&amp;nbsp; Then start the listSFTP processor again to see if generated NiFi FlowFiles for each file on your SFTP server.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 21:41:42 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-01-11T21:41:42Z</dc:date>
    <item>
      <title>Read files from SFTP server and put file in back using sftp in apache NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/381983#M244458</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dear Sir,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using apache nifi for &lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Getting file from SFTP server&lt;/LI&gt;&lt;LI&gt;Backup files another SFTP server&lt;/LI&gt;&lt;LI&gt;Delete the&amp;nbsp; all files from where getting locations&lt;/LI&gt;&lt;LI&gt;process file to call invokeHttp Request&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;SFTP images using winscp:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_1-1704967317885.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39380i6FF45113A0811AC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_1-1704967317885.jpeg" alt="enam_1-1704967317885.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After login folder locations:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_2-1704967343052.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39381iBA0DB147CB7D287A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_2-1704967343052.jpeg" alt="enam_2-1704967343052.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Here is the diagram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_0-1704967223172.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39379i360E787C9DFB0C8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_0-1704967223172.jpeg" alt="enam_0-1704967223172.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. ListSFTP properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_3-1704967437864.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39382i6D9A5124849F8715/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_3-1704967437864.jpeg" alt="enam_3-1704967437864.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. FetchSFTP properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_4-1704967463103.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39383i94038021919F23DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_4-1704967463103.jpeg" alt="enam_4-1704967463103.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Put SFTP properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="enam_5-1704967480448.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39384i161DF888C1A3F2A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="enam_5-1704967480448.jpeg" alt="enam_5-1704967480448.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I follow processors&amp;nbsp; bellow sequences:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ListSFTP--&amp;gt; FetchSFTP--&amp;gt;PutSFTP--&amp;gt;UpdateAttribute --&amp;gt; InvokeHttp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I did not get file from sftp server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the wrong of my configuration?&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>Thu, 11 Jan 2024 10:10:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/381983#M244458</guid>
      <dc:creator>enam</dc:creator>
      <dc:date>2024-01-11T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read files from SFTP server and put file in back using sftp in apache NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/382015#M244466</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108435"&gt;@enam&lt;/a&gt;, have you check the state of the ListSFTP processor (action "view State")?&lt;/P&gt;&lt;P&gt;With the listing strategy equals "Tracking timestamp", the processor save the last time it checks the SFTP folder and don't retrieve older files than this timestamp.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:01:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/382015#M244466</guid>
      <dc:creator>Elnozy</dc:creator>
      <dc:date>2024-01-11T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read files from SFTP server and put file in back using sftp in apache NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/382044#M244473</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108435"&gt;@enam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looks like you have a bad file filter regex in your listSFTP processor configuration.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.*file.*\.xls&lt;/LI-CODE&gt;&lt;P&gt;Above looks for any character for 1 or more characters until is finds the last occurrence of string "file" followed by any character for as many characters until last occurrence of string ".xls".&amp;nbsp; However, all your filenames start with "file" and have no characters before it.&lt;BR /&gt;&lt;BR /&gt;Try modifying your file filter regex by removing the ".*" before "file":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;file.*\.xls&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Right click on processor, select "view state", and then "clear state".&amp;nbsp; Then start the listSFTP processor again to see if generated NiFi FlowFiles for each file on your SFTP server.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 21:41:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-files-from-SFTP-server-and-put-file-in-back-using-sftp/m-p/382044#M244473</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-11T21:41:42Z</dc:date>
    </item>
  </channel>
</rss>

