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

User Input Special Characters Breaking Flow

Hello All!

I have a flow that uses "for a selected file" and two inputs as a trigger.

Allison_0-1623429354587.png

This flow copies the folder structure to the correct place, renames the folder to the Project Name (user input) and assigns the correct permissions to each subfolder in the structure.  It works perfectly if the user input has nothing but alphanumeric characters. But any special characters cause the flow to hang up at the renaming step with a "Bad Gateway" error. I need to find a way to allow any characters as text input.

 

Your help is appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Allison 

 

You can't create the folder with special characters. Please see. What you could do is check if the string contains '/' then use replace expression to remove before it passes to HTTP step Rename Folder.

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 blogPower Automate Video Tutorials

View solution in original post

7 REPLIES 7
abm
Super User
Super User

Could you post a screenshot of your flow history run and step where you getting this error?

 

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 blogPower Automate Video Tutorials
Allison
Frequent Visitor

Not sure exactly what you want to see...

 

Allison_1-1623430444060.png

 

Allison_0-1623430419201.png

 

Allison
Frequent Visitor

It appears to specifically be the slash (forward or back).

Allison
Frequent Visitor

So, what's happening is flow is viewing user input that contains a slash as part of a folder "path"

 "message""Folder \"Bentonville WMT Sub\" does not exist.
Unless there is a way around this, I suppose I will just have to put a warning on the user input to not use those characters.

Hi @Allison 

 

There step failing is called Rename Folder? Believe you renamed this step name? What is the Power Automate action name called?

 

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 blogPower Automate Video Tutorials
Allison
Frequent Visitor

It is "HTTP request to SharePoint"

Allison_1-1623672039448.png

 

 

Hi @Allison 

 

You can't create the folder with special characters. Please see. What you could do is check if the string contains '/' then use replace expression to remove before it passes to HTTP step Rename Folder.

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 blogPower Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,465)