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 Automate
Suggested Answer

Power Automate Bug

(0) ShareShare
ReportReport
Posted on by 2
Good evening,
 
There seems to be some type of bug regarding Power Automate. For some reason, it adds whitespaces to values that come from MS forms.
 
The "Trim function" also adds more whitespaces (opposite of what it should do).
 
Is there a way to resolve this?

Thanks in advance,
Kareem
I have the same question (0)
  • rzaneti Profile Picture
    4,394 Super User 2026 Season 1 on at
     
    Could you please share the inputs in the MS Form submission and an image of your flow run containing the extra whitespaces?
  • KC-13012254-0 Profile Picture
    2 on at
    Hi @rzaneti,
     
    If more information is needed on my end, please let me know.
     
     
     
    In the first attached screenshot, the temporary fix is to account for whitespaces in the switch values.
     
    The information below is related to the second attached image.
    As seen above we have whitespace in the beginning of the value man facepalming and it gets weirder. Even though it’s a switch option for the value of the MS Form shown in description above, if we process the value with the powerautomate trim function it will… add more whitespaces! How do I know? The above screenshot is actually the result of trim. Without trim it has whitespaces on the right side of the value vs the left side seen above.
     
    image-20260108-16...
    image-20260108-16...
    image-20260108-17...

    Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

  • Ellis Karim Profile Picture
    11,819 Super User 2026 Season 1 on at
     
    The screenshots haven't come through yet.
     
    But if you are using compose actions with expressions, make sure you haven't accidently added any spaces, for example:
     
    600
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • KC-13012254-0 Profile Picture
    2 on at
    Hello all. Are you able to see the screenshots below? I have confirmed that no whitespaces were added accidently and that power automate is adding it on it's own.
     
     
     
    A temporary fix is to account for whitespaces in the switch values. I wanted to re-add the below information regarding the image below.
    image-20260108-170253.png
     
    As seen above we have whitespace in the beginning of the value man facepalming and it gets weirder. Even though it’s a switch option for the value of the MS Form shown in description above, if we process the value with the powerautomate trim function it will… add more whitespaces! How do I know? The above screenshot is actually the result of trim. Without trim it has whitespaces on the right side of the value vs the left side seen above.
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,181 Super User 2026 Season 1 on at
    Hi ,
    can you try this :
     
    what i did was, copy the input using ctrl+ a and copy it and pasted in notepad, if you are seeing spaces like this .
    then there is a white space, Just remove it.
     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard