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 / Parameter 'Initial URL...
Power Automate
Unanswered

Parameter 'Initial URL': Syntax error

(0) ShareShare
ReportReport
Posted on by 79

Hi, I need to open a sharepoint link where I upload documents in it. But the sharepoint url contains '%' and PAD cannot continue the process. I have tried ways such as removing any % or double it up by %% but it does not work. Is there any other solutions that can overcome this? this is what happens when doing the above. Thanks 🙂

 

JackyGrealish_0-1656648852860.png

 

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @JackyGrealish See it solves your issue: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Facing-Parameter-Initial-URL-Syntax-error-while-adding-sign/m-p/1650212#M15629

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • JackyGrealish Profile Picture
    79 on at

    Do you mean adding a '%' at the end? as I just tried it and it still prompt me the same error.

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    Set it in a variable in single quotes and pass the variable

  • VJR Profile Picture
    7,635 on at

    I do not know if there is any url encoding functionality in PAD, but can you try by replacing the % characters with its corresponding equivalent.

     

    For example replacing %20 with space and the others as per the table inside.

    https://www.w3schools.com/tags/ref_urlencode.ASP

     

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    I mean like this: %'https://www.bing.com/?toWww=1&redig=2688499BF0034643B6B289E9F4D81BCA'%

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @JackyGrealish Adding to what @VJR has suggested(Escape The Special Characters In The URL)

     

    I would recommend you to try this approach and eventually you will get your URL which can be parsed by PAD:

     

    Lets say this is a lengthy SP URL: 

    https://ABCD.sharepoint.com/sites/Power/Shared%20Documents/Forms/AllItems.aspx?newTargetListUrl=%2Fsites%2FPower%2FShared%20Documents&viewpath=%2Fsites%2FPower%2FShared%20Documents%2FForms%2FAllItems%2Easpx&id=%2Fsites%2FPower%2FShared%20Documents%2FDemo&viewid=69a24f72%2D7786%2D4477%2Db21f%2D267bc8cbf943

     

    The trick could be to break it into smaller sections. PAD doesn't check whether the URL address itself is a valid web page until run-time. Its only checking for invalid characters.

     

    Split up your string
    split up the string and enter increasingly longer sections at a time.

    https://ABCD.sharepoint.com/sites/Power/Shared%20Documents/Forms/AllItems.aspx?newTargetListUrl=%2Fsites%

    Then add another short section:

    https://ABCD.sharepoint.com/sites/Power/Shared%20Documents/Forms/AllItems.aspx?newTargetListUrl=%2Fsites%2FPower%2FShared%20Documents&viewpath

    If it gives an invalid message. You would know that the second half of the string has a special character that needs to be escaped.

     

    Keep adding on sections
    It wont take long before you have a full URL that PAD can parse.

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard