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

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

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.


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.
TECHNICAL DETAILS

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

Enable promoted links app in SharePoint 2013 publishing site

SharePoint 2013 Logs for Analyzing or troubleshooting the issues related to workflows or Workflow Manager

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:
https://SiteURL/default.aspx

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
$file.File.UndoCheckout()
$file.File.Checkin(“”)

 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
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

Second Approach:
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.

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →