“Cannot complete this action” error while saving site as template
May 18, 2012

Today while trying to save a site as template (through “Site Settings” > “Save Site as template” option under “Site Actions” section) it gave sharepoint error page saying “Cannot complete this action” and a correlation id. Looking up in sharepoint’s log file for the given correlation id, it said:
SPSolutionExporter: Microsoft.SharePoint.SPException: Cannot complete this action. Please try again. ---> System.Runtime.InteropServices.COMException (0x80004005): Cannot complete this action. Please try again. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) at Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex)
Googled this and found the solution in one of msdn forum question. The problem was a corrupted list (“Team discussions” in my case). The solution, such corrupted list cannot be deleted using sharepoint web interface, so deleted it using stsadm command as below:
stsadm.exe -o forcedeletelist -url http://myserver:8080/Lists/Team%20Discussion
Once the corrupted list was deleted, the template creation worked perfectly fine. So the bottom line, if the site template creation gives error, then make sure that all your lists and libraries are in proper state and no one is in corrupted state.

1 COMMENTS

  1. nice article. That’s exactly what I was looking for.

    - Annoymous
    January 23, 2013 21:26
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Related Posts

Access Deined while deleting item from ribbon

Some sunny day you may come to this situation where the delete item…

May 30, 2012

Solving SharePoint object model exception “Web application at URL could not be found”

You are bound to hit this exception once in your life time while…

Aug 18, 2012

Retrieving text from RichTextField control of SharePoint

If you are new to using SharePoint’s RichTextField control, then you are most…

May 30, 2012
Top

Copyright © Prakash Software Solutions Pvt. Ltd. All Rights Reserved.