Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Copy files from file system to FTP

hi all,

i need to create a flow that copies a file from my local file system to an FTP server.


i've a gateway installed, and the flow works fine if i'm getting the file information and creating it in sharepoint (365).


however, when i replace the sharepoint connector with an FTP, I get the following error:



  "message""An invalid request was made. Inspect the passed parameters and actions.\r\nclientRequestId: 30979729-e60f-4631-aa18-deb2bea25149",





1- when a file is created (properties only)

2- get file content

3- create file on FTP


steps 1 and 2 work fine. it fails on step 3.



Could someone please help or advise what i might be doing wrong?

I can go the other way without issues: Ie, when a file is created on the FTP site, I can get its contents and create the file internally.

Level: Powered On

Re: Copy files from file system to FTP

hi all,

further to this, i am able to create a file on my FTP server, however only if I use dummy content.


I can use a file name using flow, however if i use file content, that's when the error occurs. i've tried both .docx files and .txt


any help will be greatly appreciated.

Level: Powered On

Re: Copy files from file system to FTP

Further, i found an old post suggesting the same problem:


however, it doesn't appear as if though there are any solutions posted - aside from deleting the connector and creating it again (which I did, and was unfortunately of no help to my process.

Community Support Team
Community Support Team

Re: Copy files from file system to FTP

Hi @ allitnils,


Could you please share a screenshot of the configuration of your flow?


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

The error message told that an invalid request was made,please inspect the passed parameters and actions,you'll need to click or tap the Edit button and then correct the problem inside the flow definition. Save the updated flow, and then click or tap Resubmit to try the run again with the updated configuration.


Please let me know if your issue could be solved.


Alice Zhang

Level: Powered On

Re: Copy files from file system to FTP

I have a similar problem, but in my case the files are created, however I still get 400 error.

Helpful resources


Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!


Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!


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!


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,755)