From: nikcraik on
Currently I have a staging server and a production server, both with
MOSS 2007. Site templates are made on the staging server, saved as a
template to the Site Template Gallery, then the STP file downloaded
onto production and added via the stsadm addtemplate command.

Recently when attempting to create a site using a new template, I
receive the following error:

"The template you have chosen is invalid and cannot be found."

Looking at the log gives me the following:

11/26/2008
09:52:37.79
STSADM.EXE (0x14F8)
0x15E0
Windows SharePoint Services
General
936x
High
Failed to mark site-scoped features active in site 'http://production/
test'.

11/26/2008
09:52:37.79
STSADM.EXE (0x14F8)
0x15E0
Windows SharePoint Services
General
72h9
High
Failed to apply template "_GLOBAL_#90" to web at URL "http://
production/test".

11/26/2008
09:52:37.79
STSADM.EXE (0x14F8)
0x15E0
Windows SharePoint Services
General
72k2
High
Failed to apply template "_GLOBAL_#90" to web at URL "http://
production/test", error The template you have chosen is invalid or
cannot be found. 0x81071e44

11/26/2008
09:52:37.79
STSADM.EXE (0x14F8)
0x15E0
Windows SharePoint Services
General
8kh7
High
The template you have chosen is invalid or cannot be found.

11/26/2008
09:52:37.79
STSADM.EXE (0x14F8)
0x15E0
Windows SharePoint Services
General
72ju
High
stsadm: The template you have chosen is invalid or cannot be found.
Callstack: at
Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String
bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at
Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
at Microsoft.SharePoint.SPSite.CreateWeb(String strUrl, String
strTitle, String strDescription, UInt32 nLCID, String strWebTemplate,
Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid webId, Guid
rootFolderId, Boolean createSystemCatalogs) at
Microsoft.SharePoint.SPSite.SPWebCollectionProvider.CreateWeb(String
strWebUrl, String strTitle, String strDescription, UInt32 nLCID,
String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean
bConvertIfThere) at Microsoft.SharePoint.SPWebCollection.Add
(String strWebUrl, String strTitle, String strDescription, UInt32
nLCID, String strWebTemplate, Boolean useUniquePermissions, Boolean
bConvertIfThere) at Microsoft.SharePoint.SPWebCollection.Add
(String strFullWebUrl, String strWebUrl, String strTitle, String
strDescription, UInt32 nLCID, String strWebTemplate, Boolean
useUniquePermissions, Boolean bConvertIfThere) at
Microsoft.SharePoint.Administration.SPSiteAdministration.AddWeb(String
strFullWebUrl, String strWebUrl, String strTitle, String
strDescription, UInt32 nLCID, String strWebTemplate, Boolean
useUniquePermissions, Boolean bConvertIfThere) at
Microsoft.SharePoint.StsAdmin.SPCreateWeb.Run(StringDictionary
keyValues) at Microsoft.SharePoint.StsAdmin.SPStsAdmin.RunOperation
(SPGlobalAdmin globalAdmin, String strOperation, StringDictionary
keyValues, SPParamCollection pars)

Any help would be GREATLY appreciated.

Thanks!
From: KZ on
On Nov 26, 3:20 pm, nikcr...(a)gmail.com wrote:
> Currently I have a staging server and a production server, both with
> MOSS 2007.  Site templates are made on the staging server, saved as a
> template to the Site Template Gallery, then the STP file downloaded
> onto production and added via the stsadm addtemplate command.
>
> Recently when attempting to create a site using a new template, I
> receive the following error:
>
> "The template you have chosen is invalid and cannot be found."
>
> Looking at the log gives me the following:
>
> 11/26/2008
> 09:52:37.79
> STSADM.EXE (0x14F8)
> 0x15E0
> Windows SharePoint Services
> General
> 936x
> High
> Failed to mark site-scoped features active in site 'http://production/
> test'.
>
> 11/26/2008
> 09:52:37.79
> STSADM.EXE (0x14F8)
> 0x15E0
> Windows SharePoint Services
> General
> 72h9
> High
> Failed to apply template "_GLOBAL_#90" to web at URL "http://
> production/test".
>
> 11/26/2008
> 09:52:37.79
> STSADM.EXE (0x14F8)
> 0x15E0
> Windows SharePoint Services
> General
> 72k2
> High
> Failed to apply template "_GLOBAL_#90" to web at URL "http://
> production/test", error The template you have chosen is invalid or
> cannot be found. 0x81071e44
>
> 11/26/2008
> 09:52:37.79
> STSADM.EXE (0x14F8)
> 0x15E0
> Windows SharePoint Services
> General
> 8kh7
> High
> The template you have chosen is invalid or cannot be found.
>
> 11/26/2008
> 09:52:37.79
> STSADM.EXE (0x14F8)
> 0x15E0
> Windows SharePoint Services
> General
> 72ju
> High
> stsadm: The template you have chosen is invalid or cannot be found.
> Callstack:    at
> Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String
> bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)     at
> Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
> at Microsoft.SharePoint.SPSite.CreateWeb(String strUrl, String
> strTitle, String strDescription, UInt32 nLCID, String strWebTemplate,
> Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid webId, Guid
> rootFolderId, Boolean createSystemCatalogs)     at
> Microsoft.SharePoint.SPSite.SPWebCollectionProvider.CreateWeb(String
> strWebUrl, String strTitle, String strDescription, UInt32 nLCID,
> String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean
> bConvertIfThere)     at Microsoft.SharePoint.SPWebCollection.Add
> (String strWebUrl, String strTitle, String strDescription, UInt32
> nLCID, String strWebTemplate, Boolean useUniquePermissions, Boolean
> bConvertIfThere)     at Microsoft.SharePoint.SPWebCollection.Add
> (String strFullWebUrl, String strWebUrl, String strTitle, String
> strDescription, UInt32 nLCID, String strWebTemplate, Boolean
> useUniquePermissions, Boolean bConvertIfThere)     at
> Microsoft.SharePoint.Administration.SPSiteAdministration.AddWeb(String
> strFullWebUrl, String strWebUrl, String strTitle, String
> strDescription, UInt32 nLCID, String strWebTemplate, Boolean
> useUniquePermissions, Boolean bConvertIfThere)     at
> Microsoft.SharePoint.StsAdmin.SPCreateWeb.Run(StringDictionary
> keyValues)     at Microsoft.SharePoint.StsAdmin.SPStsAdmin.RunOperation
> (SPGlobalAdmin globalAdmin, String strOperation, StringDictionary
> keyValues, SPParamCollection pars)
>
> Any help would be GREATLY appreciated.
>
> Thanks!

Are you certain the template matches that of the environment it is
being restored to? Has the template come from a site collection with
publishing features enabled and going to a site collection without
them? Does the target site collection or source site collection use
content types that might conflict with the template?