SharePoint Template Error: The template you have chosen is invalid or cannot be found.

/* Posted February 11th, 2009 at 1:17pm    */
/* Filed under Microsoft, Programming, SharePoint    */

/* */
sharepoint logo

sharepoint logo

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)

How to solve?

Go to CodePlex and find then download STP Inspector. Unzip and then run that app with the STP file you are trying to debug on the server you are trying to deploy the template file to

“STPInspectorWin.exe” will tell you the error. If it says you are missing a feature, export the stp file, then rename it to a CAB file and modfiy the manifest.xml file inside the CAB. Use the STP Inspector to find the missing GUID and do a search then remove that line from the xml manifest.

Repack up all the files in the STP file and the new manifest.
You should google and then use CABARC.EXE. Its a free ms tool. What I did was extract everything in the cab into a folder called test, then go to the command prompt and type in
cabarc N

Example:
C:\stp\BIN>cabarc N test1.cab C:\stp\BIN\Test\*.*

If your Template file is too large, you can change the size limit by using this command:
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 524288000

Tags:


Related Stories

Leave a Reply

or Login (not required)





HTML tags allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Nothing found for Tools Panel Php?preblock=%3Cdiv+class%3D%22sidelist%22%3E%3Cul%3E&postblock=%3C%2Ful%3E%3C%2Fdiv%3E&preitem=%3Cli%3E&postitem=%3C%2Fli%3E&num=

Mission Statement

Mission Statement

To remain on the cutting edge of Internet advertising by investing and building innovative, progressive and revolutionary companies that advance the industry. It is our responsibility to operate companies that set new standards for service, quality, and profitability.

Read More

What We Do

We are committed to the pursuit of excellence and pledge to stand ahead of our competitors. Our business model is simple: find and cultivate ideas that improve every aspect of the experience, setting a new precedence. We thrive in competitive markets because we focus on strong, long-term relationships and innovative solutions. Our influence and reputation flows from the quality of our teams and...

Read More