cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Beulmoto
Frequent Visitor

FTP error 400 BadRequest destination path changed

I’m trying to create a flow where a zip file is created on my FTP server, extracted, and then delete the original zip.

It works as expected on Google Drive, but throws a BadRequest on FTP.

I’ve looked at the error message, and it looks like flow is appending “/n” to the end of my destination folder path. I saw what may be a related thread here : https://powerusers.microsoft.com/t5/General-Power-Automate/How-can-I-fix-the-ERROR-quot-BadRequest-q... but the resolution is unclear.

Are there any workarounds ? Maybe there’s a way of pulling the folder ID and using that as a dynamic destination ?

Output with modified destinationOutput with modified destinationInput parametersInput parameters

13 REPLIES 13
abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

Try using an expression replace function to remove '\n' ?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm 

 

I’m a bit new at this unfortunately. I’ve just added screenshots to demonstrate my issue.

 

Can you go into a bit more detail about the solution you’re proposing ? I’m having a bit of trouble grasping it.

 

Thank you for the quick reply.

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

How you setting the destination path? Can't see from the screenshot other than a text.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm 

 

I’m setting it by using the location picker and selecting the folder7C26AB14-12F2-4C1B-8CB3-B98FBF829990.jpeg

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

Thanks for your quick reply.

 

Did you press enter after selecting the folder using the picker? I would say remove the path and select again the path.

 

Let me know how it goes.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm 

 

So by re-selecting it as you suggest it did indeed eliminate the /n issue.

 

However, the error 400 persists, and I am completely lost as to why. The only other irregularity is 

that the asynchronous pattern setting must be disabled in the create file stage, otherwise it will time out.

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

Thanks for the reply. How big is the file? Could you try uploading a sample small text file?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm 

 

The zip is around 22 MB and extracts into 184 MB. There are multiple files within the folder, and no single file is over the 50 MB limit. I have a parallel flow running on google drive, and it executes perfectly which is why I’m so confused.

 

I’m not sure I can upload a sample text file, since it would contain proprietary information from a supplier unfortunately.

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

Try the following:

 

Your destination path I can see a space before slash '/'? 

image.png

 

 

Also try to recreate another connection. Click the three dots and click Create Connection.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm ,

 

Unfortunately still no luck... There isn’t a space, I double checked. It’s just within the picker that the font creates that impression.

 

I recreated the connection, but still the error is exactly the same.

 

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

I am running out of options here. Could you try after few hours or leave it for a day or so. Sometimes connections take time to refresh but shouldn't take that long. If no luck after tomorrow raise this with Microsoft and update the outcome here please. Thanks for all the quick responses.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Beulmoto
Frequent Visitor

Hi @abm 

 

Unfortunately the flow failed this morning with the same error.

 

Do you know the best way to contact Microsoft for this?

abm
Most Valuable Professional
Most Valuable Professional

Hi @Beulmoto 

 

Thanks for letting me know.

 

https://unitedkingdom.flow.microsoft.com/en-us/support/

 

At the end of the screen click Contact Support

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (2,632)