web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Special Characters sto...
Power Automate
Suggested Answer

Special Characters stopping flow

(0) ShareShare
ReportReport
Posted on by
Hi Everyone,

I have a flow that recieves a text field from Power Apps.  Users often use special characters ~`!@#$%^&*()+|{}[]<>/\?;:., in the text field.  

These special characters wont pass through the "compose" function in power automate.

I have read a lot of commentary online about how to remove the special characters.   

Is there any way to keep the special characters and still get the flow to work?

Thanks

Mike
Categories:
I have the same question (0)
  • Suggested answer
    JK-01120840-0 Profile Picture
    2 on at
    I had a similar problem, try wrapping your text field in to encodeUriComponent() on the formula bar. You can also decodeUriComponent to get it back to normal. In my case dataverse decodes the value automatically after I add a new row.
  • David_MA Profile Picture
    14,614 Super User 2026 Season 1 on at
    I don't use Power Apps, but I think this is possible. Use a regular expression to restrict the characters that can be entered in the field. This expression will only let people enter letters and numbers: IsMatch(TextInput1.Text, "^[A-Za-z0-9]+$")
     
    We use Nintex forms, which allows for RegEx validation of fields, and I use this expression for instances such as this. With Nintex forms, I can set an error message when the RegEx validation of the field fails.
     
    Although, you mentioned you are having the issue with this in a compose action. Can you share how you have the compose action configured and the error message you get. A Compose action should be able to return any text at all. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard