In this post, we will discuss how we can resolve the below error which comes while opening a SharePoint 2013 page. The error comes as:
Cannot complete this action. The URL ‘Pages/Default.aspx’ is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features
Sorry, something went wrong
The URL ‘Pages/Default.aspx’ is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: d020539d-7e1e-a03f-6251-c4ba6b921471
Date and Time: 1/7/2016 10:15:30 PM
You can also read:
– Site Title snippet in SharePoint 2013 custom master page
This error comes in a SharePoint 2013 which was migrated from MOSS 2007 using database upgrade approach. Like first migrate from Moss 2007 to SharePoint 2010 and then from SharePoint 2010 to SharePoint 2013.
My site page URL was like this:
When we visit this URL it gave the error.
When we open the SharePoint site using SharePoint designer 2013, We are able to see default.aspx page in the designer. Then we try below options.
First, we saw that the page has been checked out by some other user, then we tried to do undo checkout (Right click on the page -> undo checkout), but it still gave the same error message. Then we run the below PowerShell command to forcefully UndoCheckout the page but it still gave the same error message in PowerShell window.
$web = Get-SPWeb https://SiteURL/
$list = $web.Lists[“Pages”]
$file = $list.GetItemById(1); // ID of the file with the issue
The second approach which we tried is:
Take a backup of the default.aspx file. In the designer itself copy the default.aspx file and save it in the same pages directory. Then we deleted the old file and then we rename the backup file to default.aspx and then it started working fine for us.
Hope this will be helpful.
FREE SHAREPOINT 2019 PDF
(Installation & Features)