Solved

SharePoint 2010 Save site as template error

Posted on 2011-03-23
6
2,822 Views
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.

 ActivatingTemplateError
0
Comment
Question by:mvozila
[X]
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
6 Comments
 
LVL 14

Expert Comment

by:KoenVosters
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.
0
 
LVL 1

Author Comment

by:mvozila
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.
http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/b3fba69e-e732-457e-a52c-028553e78dfd
0
 
LVL 14

Expert Comment

by:KoenVosters
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)
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 1

Author Comment

by:mvozila
ID: 35215538
I do not have a list template with this name.
0
 
LVL 1

Accepted Solution

by:
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 (http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/b3fba69e-e732-457e-a52c-028553e78dfd)

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" />

0
 
LVL 1

Author Closing Comment

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

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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