Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using Flow to move file from SFTP to File System

Hi everyone!


I am completely new to Flow but I have a simple task that I think can be completed with it. I have an SFTP site that generates a text file every night. I'd like to set up a flow that would move the text file from the SFTP site to a folder on my local machine.

I've started creating the flow "When a file is added or modified -> Copy File" using the SFTP and File System connectors. When I test the flow, the SFTP portion works fine, but the "copy file" action fails:



Source URL: [FilePath] (using the file path dynamic content from the SFTP action)

Destination file path: C:\MS Flow Test\test.txt

Overwrite?: No

The error I receive looks like I've screwed up the file path, but I'll be honest I don't fully now what I'm doing so I might have missed a step.


"status": 400,
"message": "The requested action could not be completed. Check your request parameters to make sure the path 'C:\\MS Flow Test/test.txt' exists on your file system.\r\nclientRequestId: 795b6a8a-bda4-4937-8415-22170af8784f",
"source": ""


Does anyone have any suggestions?

Community Support
Community Support

Re: Using Flow to move file from SFTP to File System

Hi @Anonymous,


Have you create a connection with File system connector?


Please take a try to add a "Get file content" action of SFTP connector to get the file content,and then add the "Create file" action of File system connector to copy the file to File system instead of use the "copy file" action File system connector.


Please take a try on your side and let me know if your problem could be solved.


Best regards,




Helpful resources


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (10,404)