Publishing Page – List does not exist error message

I ran into an issue today where users could not access as SharePoint 2007 Publishing Site Page. The error message was:List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user. Troubleshoot issues with Windows SharePoint Services. I had no problem viewing my site and couldn't figure out what was wrong.  I then looked at the URL for the page which was:
http://[sharepoint-site-URL]/_layouts/AccessDenied.aspx?Source=[SharePoint-site-URL]&Type=list&name=%7B2007BFAB%2D9CC4%2D41DA%2D8ED0%2D7E4C5BDAE90C%7D
 

The key here was the AccessDenied pages and the name query string value:
7B2007BFAB%2D9CC4%2D41DA%2D8ED0%2D7E4C5BDAE90C%7D

After decoding the html encoded characters out I got a GUID of:
{2007BFAB-9CC4-41DA-8ED0-7E4C5BDAE90C}If you look at the name, it is actually the id of `list item' that the user has been denied access from viewing. I then went to central administration to get the name of the content database of the site I was working on, and then went to SQL Server Management Studio and expanded my content database to dbo.AllLists.I ran a query against my content database for the list that users have been denied access to.select * from dbo.alllists
where tp_id='{2007BFAB-9CC4-41DA-8ED0-7E4C5BDAE90C}'
 I received one result with a tp_Title of `Master Page Gallery' That was all I needed.  I then went to my page and looked at the template it was using.  It was using a custom page layout I created. I proceeded to look at my Master Page Gallery and saw that the page layout it was using was never checked in and was in a `pending' status. 

Not the best error message, but the lesson here is that users cannot access pages using page layouts that have never been checked it.  Makes sense, but a more meaninful error message would have been nice.  I've learned my lesson Wink

 

Leave a Reply