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 blog
Power 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 blog
Power 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 blog
Power 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 blog
Power Automate Video Tutorials

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,020)