Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

SFTP to SFTP Create File Error

(0) ShareShare
ReportReport
Posted on by 2

Attempting a flow to 'Create File' in an SFTP subfolder when a file is added to root SFTP folder. 

 

I have successfully ran this flow using a small .txt file, but when a .zip file is added, the flow results in a 400 Error, "unknown error occurred". The result in the destination path is a .filepart file that looks to just be a corrupted text file. 

The file sizes are approx. 120KB, so it's not a file size error I don't believe. 

 

Other attempts include... copy file, get content and create file, extracting archive to folder, & so many more. All failed, even using PDF and other file types. 

 

Any suggestions?

  • mcolbert Profile Picture
    126 on at
    Re: SFTP to SFTP Create File Error

    @v-bacao-msft

     

    I have a similar issue, I can transfer a pgp encrypted csv to a folder in the site. 

    Successful transfer to a sub-folder in the siteSuccessful transfer to a sub-folder in the site

     
    But as soon as I change the destination to the root folder, I get this error.
    {
    "status": 400,
    "message": "An unknown error occurred.\r\nclientRequestId: 08a42fb4-a775-46c7-9d57-674512977e3f",
    "source": "sftpconnectionprovider-westus.tip0-westus.p.azurewebsites.net"
    }
    I can manually transfer the same file to the root folder using winscp using the exact same credentials, so it doesn't seem to be a permissions issue.
     
     Failed transfer to root folderFailed transfer to root folderFailed error messageFailed error message
    Any ideas?
  • mlrdavis Profile Picture
    2 on at
    Re: SFTP to SFTP Create File Error

    Here is the flow set up to extract the file from the .zip files that's added. 

     

     Flow Trigger.PNGFlow Result.PNG

  • v-bacao-msft Profile Picture
    on at
    Re: SFTP to SFTP Create File Error

    Hi @mlrdavis,

     

    Could you share a screenshot of your Flow configuration?

    An error code of 400 appears a setting in an action of the flow doesn't function as expected.

    Could you provide run details and error messages?

    It would be helpful if you could post more details and we would provide a proper workaround for you.

     

    Best Regards,

    Barry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1