Navigate Up
Sign In

SharePoint: Save Site As Template Common Errors/Mistakes

Item is currently unrated. Press SHIFT+ENTER to rate this item.1 star selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+ESCAPE to leave rating submit mode.2 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.3 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.4 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.5 stars selected. Press SHIFT+ENTER to submit. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.

You may also be interested in: Buy 1 Training Get 1 Free with Innovative-e

 

Editor's note: Contributor Alex Choroshin is a Sharepoint Team Leader at Bank Leumi. Follow him @choroshin

I’ll try to explain couple of common mistakes/errors made when trying to save a site as site template.

1) Save publishing site as site template


The Problem

A common mistake is made when trying to save a publishing site as a site template. There is a  good reason why this publishing template is not supported and does not include the ‘Save as Template’ link. There is a workaround to enable this feature as explained in this post. It maybe a quick solution but in the long run this solution is very problematic when later trying to upgrade the site templates generated from this template.

The Solution

Develop Site definition /web template.

2) Getting “InvalidOperationException Error generating solution files in temporary directory” error when trying to save as site template


The Problem

When saving as site template the WSP generated is temporarily saved in the c:\temp or in c:\windows\temp folder and later in the solution gallery on SharePoint. Usually what happens is that the App pool account that creates the WSP is unauthorized to access the c:\temp or the c:\windows\temp folder.

The Solution

Give the App pool account full permissions to c:\temp and c:\windows\temp folder.

3) Getting “Microsoft.SharePoint.SPException: Error exporting the site field named "SomeLookupField" error when trying to save as site template.


The Problem

When trying to save as site template and the site contains some lookup field you might get Microsoft.SharePoint.SPException: Error exporting the site field named "SomeLookupField” exception.

The Solution

a) You need to remove the curly brackets from the ID definition of your field.

b) Add an ‘overwrite’ attribute to your field and set it to 'TRUE'.

The full article.

4) Save as site template SharePoint 2010 Blog


The Problem

When trying to save a blog as site template the post's list appear 5 times in the site as 5 different views.

The Solution

The workaround that Manas found is:
a) Navigate to “View all site content “.
b) Select one of the “Posts” >>navigate to its “List settings” .
c) Go down into “My  Posts” List and select the option “Make this as default view “.
d) Now you will see only one “Posts” list.

5) Getting “Error exporting the list named “Announcements” at the URL: Lists/Announcements” error when trying to save as site template.


The Problem

When creating a site as a web template and then creating sub sites which you wish to save as a web template you receive the following error “Error exporting the list named “Announcements” at the URL: Lists/Announcements”.

The Solution

As posted by Jonathan Adams in this great post

Run the SharePoint 2010 Management Shell as Administrator.  Run the following command to disable the default content type feature:

Disable-SPFeature –Identity ctypes –url http://SiteCollection

Then enable the content type feature:

Enable-SPFeature –Identity ctypes –url http://SiteCollection

Try saving the subsite as a template again, it should succeed.

Hope you find this post helpful2012-10-16-CommonMistakes-01.png

see u next time…

Categories: SharePoint; Troubleshooting and Support; MOSS; WSS; 2010

Comments

b shankar

sharepoint 2013

Hi Can we save complete webapp(including its subsites, navigation links) as a template in SharePoint 2013?

Posted 07-Jan-2013 by b shankar
EM

Nothing happens...?

Hey. First of all, nice guide - thank you!
 
Now for my issue: I tried saving a normal team site (no publishing feature, no non-ootb functions, just a standard team site with standard lists and libraries) as a site template. I don't receive any error messages, but absolutely nothing happens when I click OK. It doesn't freeze, it doesn't load, and I can cancel to go back.
 
Have you ever come across this kind of scenario?
 
This is on a 2013 SharePoint Server Standard installation.
 
Thank you.

Posted 13-Feb-2013 by EM
brandon

Same error

Hey em, did you ever figure out a solution to your template issue. I am having a similar issue, when I click okay nothing happens. Every once in awhile SharePoint will start loading an then I receive a error. I have even created a test site with no changes to the team template and attempted to save that and SharePoint produced an error as well.

Posted 12-Sep-2013 by brandon
dfdsf

dfd

dfds

Posted 27-Feb-2014 by dfdsf

Notify me of comments to this article

E-mail:
   

Add Comment

Title:

 
Comment:
Email:

   


Name:

 
Url: