Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


SharePoint 2010 Save site as template error

Posted on 2011-03-23
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 14

Expert Comment

ID: 35215103
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

ID: 35215453
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

ID: 35215493
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)
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.


Author Comment

ID: 35215538
I do not have a list template with this name.

Accepted Solution

mvozila earned 0 total points
ID: 35363697
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

ID: 35399311
This was the actual solution to the issue I was having.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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