Tom Clarkson

SharePoint, Startups and some other stuff

Failed to Apply Template

with one comment

Here’s an error that caused a lot of frustration over the last couple of days:

 
 

Failed to apply template TemplateName.stp to web at URL SharePointSiteName, error The template you have chosen is invalid or cannot be found.

 
 

This is a typically vague SharePoint error message – could mean anything and usually is caused by something completely unrelated to the displayed message. After lots of searching and considering things like duplicate IDs, publishing feature conflicts, different SharePoint versions, differences between domain and local accounts, approval status, site heirarchy and various interactions with the custom code on the server we found the problem.

 
 

We were trying to use a list template as a site template. Both types of template are cab files with the extension .stp, and you can upload to either the site or list template galleries without any issues. The template shows up in the template list when you create a site. The error turned out to be exactly what the message said it was, while providing no useful information whatsoever. Some days I hate SharePoint..

Advertisement

Written by Tom Clarkson

September 19, 2008 at 2:51 am

Posted in SharePoint

One Response

Subscribe to comments with RSS.

  1. This is one possible error: http://support.microsoft.com/kb/925189.

    The error I had was actually related to the fact that the template file name was Template.stp.stp (stp was repeated twice).

    PeterB

    April 24, 2009 at 8:44 pm


Leave a Reply

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

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

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

Facebook photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.