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 / URL with % throwing error
Power Automate
Unanswered

URL with % throwing error

(0) ShareShare
ReportReport
Posted on by 6

Hi, I'm trying to invoke a web service but the URL contains % which is causing Power Automate to spit out an invalid syntax error, I've tried a few methods to work around this but I'm coming up short.  Does anyone have a solution or idea that could help?

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    put %%

     

    % is the identifier for a variable, so it thinks anything between 2 percentages is a variable.

     

    %% is the escape and it will read it as one % when applying the URL

  • mtorlone Profile Picture
    6 on at

    I tried this and I still get the following response:

    {"error":{"code":"InvalidRequestContent","message":"The request content is not valid and could not be deserialized: 'Unexpected character encountered while parsing value: %. Path '', line 0, position 0.'."}}

     

    I've attached a screenshot of the action in PAD, the uncensored parts are the only ones with %'s

    mtorlone_0-1663173159708.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Sorry, don't know much about invoking web services and json...if it's a json error, i won't be able to help.

     

    If it is an escape issue, you can try "Escape Text"....take your original text, throw it into the "Escape Text" action and then the variable %EscapedText% should work in place of the URL.

     

    If this doesn't work, I wonder if it is a json issue and you have to escape the same text for json's rules.

    Best of luck!

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Sorry, don't know much about invoking web services and json...if it's a json error, i won't be able to help.

     

    If it is an escape issue, you can try "Escape Text"....take your original text, throw it into the "Escape Text" action and then the variable %EscapedText% should work in place of the URL.

     

    If this doesn't work, I wonder if it is a json issue and you have to escape the same text for json's rules.

    Best of luck!

  • Gidi Profile Picture
    601 on at

    Have you tried to build a variable instead of hardcoding the URL in the invoke web service action?

    Perhaps formatting as text will work ( %'%2Ftriggers%2Fmanual…'%). 

  • mtorlone Profile Picture
    6 on at

    I put it in a single variable and tried but I didn't have any success with this way either.

  • Gidi Profile Picture
    601 on at

    Oh, just recognize that the request body was errored out. Maybe not the URL is the problem. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard