Site Templates and Deleting Sites

I am sure you already know that when you save a site as a template in SharePoint 2010 it creates a new Solution.  You can then create new sites based on this template.  Cool.

If you create a site by mistake or have finished with a site then you can, of course, delete that site.

However, if you now try to deactivate your site template Solution you will get a rather unfriendly error message.  It seems that there is a lingering link between the Solution and the created site – so if the site is deleted then you can do nothing with the Solution (cannot rename or delete without first deactivating it).

My suspicion is that this may be related to service pack 1 and the fact that the deleted site is sitting in the recycle bin.  If you restore the deleted site from the recycle bin then you can now deactivate the Solution as usual.

Hmmmm.

The workaround I am using for this is to deactivate the Solution before I delete any sites that were created from it. I can then reactivate it and all is well.

This problem only relates to the specific Solution that a site was created from.  If you have deleted the Solution and replaced it with a newer version using the same name then you can delete older sites which were created from previous versions of the Solution with no problems.

Hope this saves somebody else some puzzling!

This entry was posted in SharePoint and tagged , , , , , , . Bookmark the permalink.

One Response to Site Templates and Deleting Sites

  1. This is my first time pay a quick visit at here
    and i am genuinely pleassant to read all at single
    place.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s