“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

Changing the language of an existing SharePoint site

Recently, I had a problem with an existing SharePoint site. The problem was…

Dec 26, 2008

Retrieving text from RichTextField control of SharePoint

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

May 30, 2012

“command line error” while using “stsadm” command

When ever you get this error while using “”stsadm”” command, the best thing…

May 8, 2012
Top

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