LogiApps SFTP SSH Get File Content The provided path

Mateusz Wygoda 46 Reputation points
2022-03-03T13:46:07.157+00:00

Hi,

I was try to copy file from SFTP to sharepoint site. After connecting to external partner SFTP, Logic Apps are listing whole files, but when I try to download it using file content I get error, about incorrect path. (This flow was working on my SFTP connection.)
I noticed that when I try to copy files from SFTP using winscp, those files are removed from SFTP automatically when I copy past them.

{  
  "status": 404,  
  "message": "The provided path '/OUT/XXX.csv' does not exist.\r\nclientRequestId: 558d6ac5-3749-43e7-bdc5-ad385125ae22",  
  "error": {  
    "message": "The provided path '/OUT/XXX.csv' does not exist."  
  },  
  "source": "sftpwithssh-we.azconn-we.p.azurewebsites.net"  
}  

179706-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,016 Reputation points
    2022-03-07T07:54:35.813+00:00

    Hi @Mateusz Wygoda

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I will suggest you to verify that you are passing the file id (not the file path) for the Get File Content action. If you are using file metadata using path action then you need to specify the file path.

    In case, if you are passing the right value then please verify if you are using any of the below SFTP servers as the connectors currently don't support them as documented here.

    • IBM DataPower
    • MessageWay
    • OpenText Secure MFT
    • OpenText GXS
    • Globalscape
    • SFTP for Azure Blob Storage
    • FileMage Gateway

    If you are using an IBM SFTP server then the issue is caused by some default setting on SFTP server side. You can increase ExtractCount to at least 2 if the files are small (no chunking). Otherwise, it will need to be more than the number of chunking : https://www.ibm.com/support/pages/message-extractable-count-set-1-default


0 additional answers

Sort by: Most helpful