SharePoint 2010 Save site as template error

Posted on 2011-03-23
Last Modified: 2012-05-11
We are running SharePoint 2010. We have two IIS websites, one for Mysites and the other is our main production site. On the main production site we have a few site collections, one that hosts the metahub, one for project, and our main company site collection. Most everyone works in the main company site collecttion. When I atempt to save a site as a template I receive a generic SharePoint ID error. When I search through the SharePoint Logs I see the message below. The Sp_admin account it is refering to is the SharePoint Farm account. I get the same message when I create a blank site and try to create a template of it. I am able to save templates when I create a new site collection or save a template in the Project site, which is only a week old. I have no idea when this started, but it was definitely working in the past. Our Sharepoint 2010 environment is almost a year old, and had been upgraded (database detach) from SharePoint 2007. We have had Corasworks running on the farm, but I have since uninstalled it.

Feature definition with Id e3d8db97-187c-4e2f-93bd-c8192aae25c0 failed validation, file 'Yankees2ListInstances\ElementsFields.xml', line 149, character 219: The 'NoCrawl' attribute is not allowed. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Microsoft.SharePoint.SPException: Feature definition with Id e3d8db97-187c-4e2f-93bd-c8192aae25c0 failed validation, file 'Yankees2ListInstances\ElementsFields.xml', line 149, character 219: The 'NoCrawl' attribute is not allowed.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 

[SPException: Feature definition with Id e3d8db97-187c-4e2f-93bd-c8192aae25c0 failed validation, file 'Yankees2ListInstances\ElementsFields.xml', line 149, character 219: The 'NoCrawl' attribute is not allowed.]
   Microsoft.SharePoint.Administration.SolutionFile.FeatureXmlValidationCallBack(Object sender, ValidationEventArgs evtargs) +21274546
   System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg) +135
   System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo) +780
   System.Xml.XsdValidatingReader.ValidateAttributes() +201
   System.Xml.XsdValidatingReader.ProcessElementEvent() +947
   System.Xml.XsdValidatingReader.Read() +276
   System.Xml.XmlReader.MoveToContent() +22
   System.Xml.XmlReader.IsStartElement() +13
   Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, ValidationEventHandler xsdValEventHandler) +605
   Microsoft.SharePoint.Administration.SolutionFile.ValidateFeatureXmlFile(String rootTagElement) +109
   Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElementsCore(XmlNodeList nodeList, String strFeatureDirRelativeToCabFile, Guid featureId, Dictionary`2 filesAdded) +724
   Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElements(XmlNode root, String strFeatureDirRelativeToCabFile, String strFeatureXmlFilename, Guid featureId) +268
   Microsoft.SharePoint.Administration.WspSolutionFeature.ProcessFeatureXml() +328
   Microsoft.SharePoint.Administration.SPSolutionPackage.InitSolutionFeatures(XmlNode root) +511
   Microsoft.SharePoint.Administration.SPSolutionPackage.ProcessSolutionManifest() +1015
   Microsoft.SharePoint.Administration.SPSolutionPackage.Load() +46
   Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionPackage(SPRequest request, String name, String signature, Byte[] fileBytes) +22639340
   Microsoft.SharePoint.<>c__DisplayClass1.<AddOrUpgrade>b__0() +239
   Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +27488118
   Microsoft.SharePoint.SPUserSolutionCollection.AddOrUpgrade(SPListItem item, SPUserSolution existingSolution) +449
   Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId) +574
   Microsoft.SharePoint.WebControls.SolutionItemButton.ActivateItem() +398
   Microsoft.SharePoint.WebControls.SPLinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +72
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

Open in new window

When I check out the solution Gallery I see the template I just created. I called it Yankees2 in this example. When I attempt to activate it I get the error below.

Question by:mvozila
  • 4
  • 2
LVL 14

Expert Comment

Comment Utility
You have deployed a list with a nocrawl property in it. Can you check if this YankeeListInstance is also in the blank template.

Author Comment

Comment Utility
I created a blank site from a SharePoint blank template.I then save this template asYankee. IT failed with the first error above. However, it did save the solution gallery and when I activated it I got the second error.

This seemed promising, but unsure what server to do this on. I  tried the central admin server and then one of the front-end servers (I have 2, but disbled the second when I ran the test), but no luck. I also have a seperate search server.
LVL 14

Expert Comment

Comment Utility
Can you check if when you are trying to create a list if you have a list template that says yankee.... (in the site settings screens)
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.


Author Comment

Comment Utility
I do not have a list template with this name.

Accepted Solution

mvozila earned 0 total points
Comment Utility
Made the following change to the  wss.xsd file (c:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\XML) on the front end servers and the central admin server. This is from a Microsoft artcile (

Find the following line:

<xs:complexType name="FieldDefinition" mixed="true">

and at the end of all underlying attributes and just before the line:

<xs:anyAttribute namespace="##other" processContents="lax" />

add this line:

<xs:attribute name="NoCrawl" type="TRUEFALSE" />


Author Closing Comment

Comment Utility
This was the actual solution to the issue I was having.

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now