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
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)
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.


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

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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…

630 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