SharePoint SiteDefinitions

I created a simple site definition based on a publishing portal. Every time I want to use a template to create a collection of sites, I get the following error message:

The selected template is invalid or cannot be found.

I do not use any custom function, but only the default functions with the site-def publishing site. Any clues?

There is an error log, but it just gives me the information above:

Applying template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233". Failed to get the site template for language 1031, search key 'PalfingerPlatformsOrderRoot'. This warning is expected when provisioning from a custom web template. Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233". Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233", error The template you have chosen is invalid or cannot be found. 0x81071e44 The template you have chosen is invalid or cannot be found. CreatePortal failed creating portal webs. Microsoft.SharePoint.SPException: The template you have chosen is invalid or cannot be found. ---> System.Runtime.InteropServices.COMException (0x81071E44): The template you have chosen is invalid or cannot be found. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) --- End of inner exception stack trace --- at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate) at Microsoft.ShareP... ...oint.Publishing.PortalProvisioningProvider.CreatePortal(String xmlFile, SPWeb rootWeb) 
+6
sharepoint sharepoint-2007
source share
3 answers

Check your own template identifier, (open it and view the xml), it may contradict the existing template. you can check

Program Files \ Shared Files \ Microsoft Shared \ Web Server Extensions \ 12 \ TEMPLATE \ 1033 \ XML

for other templates and their identifiers

+8
source share

I had the same problem and it turned out that this was due to a function that was deleted on the server.

Such a function was included in the template file for activation. I found this by examining the template file (.STP) and looking at the WebFeatures node. The functions there are identified by their GUIDs, so I had to search one by one in the Templates folder until I find out which one was actually deleted on the system.

This function was installed on the system when the template was created, after which it was deleted. After that, it was impossible to create elements with the given template (and the Sharepoint error message was not very clear about the true reason).

After installing the function (stsadm -o installfeature ...) everything worked.

+3
source share

Check the trace logs / ULS logs in 12 places - there will almost certainly be more information about your error.

+1
source share

All Articles