Thursday, September 22, 2011

Sharepoint 2007: STSADM IMPORT - List does not exists error

Within our Organization we have created a Communication portal that is region specific. We deploy individual site collection for every  country. The Site collection can be customized to have country specific content.

Our plan was to first construct one Site collection with basic features and then replicate it as Site template. We create the basic Site collection as a publishing site, as we needed the Publishing features and then exported the Site Template using STSADM Export operation.


Then we intended to use STSADM Import to import the template for other Site collection for various countries. But after importing the Site template, we opened the new site collections to encounter the following error message on Home page

List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x81020026): List does not exist 
The page you selected contains a list that does not exist. 
It may have been deleted by another user.]

Microsoft.SharePoint.Library.SPRequestInternalClass.

GetListsWithCallback(String bstrUrl, Guid foreignWebId, String
bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32
dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean
bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData,
ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +0 
Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, 
Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32
dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32
dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, 
Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& 
plRecycleBinCount) +333

[SPException: List does not exist]


For your reference our site had a customized Style sheets and we had created number of Page Layouts and Content types to support different data to be handled by the users.
All the aspx page with the Pages library were giving us this error. 

Solution

After a lot of searching and trial and error, the Solution rather seemed to be easy. We had to just de-activate the "Office SharePoint Server Publishing Infrastructure" site collection feature and then re-activate it along with the "Office SharePoint Server Publishing" site feature, and BINGO... it worked.
I guess the issue was that some of the default Publishing List was not created during Import but when we de-activate and re-activate the feature these Lists were created back which solved this issue.

Hope this will help you..... :-)

No comments:

Post a Comment