On SharePoint 2013 we had an issue where the user was getting the error message below when cancelling from creating a new page in the Pages library.
Sorry, something went wrong
An unexpected error has occurred.
The correlation ID for this error will be an empty GUID (000000-000-etc).
The steps to reproduce this issue are as follow:
- Navigate to the Pages library
- Navigate to a particular view of the Pages library
- From the ribbon choose to create a new page of any content type
- On the Create Page, choose Cancel
It turns out that this problem is caused by a space in the file name of the view chosen in step 2 above.
In our case the file name of the view was “Fact Sheets.aspx”. This means that when we go to the view in step 2, the URL is encoded as “…/pages/forms/fact%20sheets.aspx”.
When we go to the Create Page in step 3, this URL is again encoded and passed on in the Source query string parameter as “…/pages/forms/fact%2520sheets%2Easpx”.
When we click Cancel in step 4, SharePoint takes us back to the URL found in the Source query string parameter. It seems however that SharePoint is not decoding this value. It therefore takes us to the page “…/pages/forms/fact%2520sheets%2Easpx”, which does not exist and therefore results in the error.
Renaming the file name of the view to “FactSheets.aspx” fixed the issue.
This issue was found on December 2014 CU.