Microsoft KB Archive/925189: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "<" to "<")
Line 62: Line 62:


To work around this issue, open the Feature.xml file of the Publishing feature. Then, manually add a new ElementManifest. For example, add the following element.
To work around this issue, open the Feature.xml file of the Publishing feature. Then, manually add a new ElementManifest. For example, add the following element.
<pre class="codesample">&lt;ElementManifest Location=&quot;MyHideAction.xml&quot;/&gt;</pre>
<pre class="codesample"><ElementManifest Location=&quot;MyHideAction.xml&quot;/&gt;</pre>
Then, create a new MyHideAction.xml file in the same directory by using the following content.
Then, create a new MyHideAction.xml file in the same directory by using the following content.
<pre class="codesample">&lt;Elements xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
<pre class="codesample"><Elements xmlns=&quot;http://schemas.microsoft.com/sharepoint/&quot;&gt;
&lt;HideCustomAction Id=&quot;HideSaveAsTemplate&quot; HideActionId=&quot;SaveAsTemplate&quot;  
<HideCustomAction Id=&quot;HideSaveAsTemplate&quot; HideActionId=&quot;SaveAsTemplate&quot;  
GroupId=&quot;Customization&quot; Location=&quot;Microsoft.SharePoint.SiteSettings&quot; /&gt;  
GroupId=&quot;Customization&quot; Location=&quot;Microsoft.SharePoint.SiteSettings&quot; /&gt;  
&lt;/Elements&gt;</pre>
</Elements&gt;</pre>


</div>
</div>

Revision as of 08:31, 21 July 2020

Knowledge Base


Error message when you try to use an existing site template to create a new SharePoint Server 2007 site: "Failed to apply template"

Article ID: 925189

Article Last Modified on 5/14/2007



APPLIES TO

  • Microsoft Office SharePoint Server 2007



SYMPTOMS

Consider the following scenario. You change an existing Microsoft Office SharePoint Server 2007 site. You save the updated SharePoint Server 2007 site as a template. Then, you try to use this template to create a new SharePoint Server 2007 site.

In this scenario, when you click Save Site as Template under Look and Feel on the Site Settings page, you receive the following error message:

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

Additionally, the template is not saved.

CAUSE

This issue occurs if the top-level SharePoint Server 2007 site of the SharePoint Server 2007 site that you are trying to save as a template has the publishing features turned on. In this case, Save Site as Template appears under Look and Feel on the Site Settings page.

WORKAROUND

To work around this issue, open the Feature.xml file of the Publishing feature. Then, manually add a new ElementManifest. For example, add the following element.

<ElementManifest Location="MyHideAction.xml"/>

Then, create a new MyHideAction.xml file in the same directory by using the following content.

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction Id="HideSaveAsTemplate" HideActionId="SaveAsTemplate" 
GroupId="Customization" Location="Microsoft.SharePoint.SiteSettings" /> 
</Elements>

REFERENCES

For more information about the Feature.xml file, visit the following Microsoft Web site:


Additional query words: MOSS2007 MOSS 2007 SPS

Keywords: kbtshoot kbprb kbexpertiseinter KB925189