Total Pageviews

Search This Blog

Thursday, November 14, 2013

Troubleshoot Sharepoint Exception Microsoft.SharePoint.SPException: Feature definition with Id failed validation

Greetings Friends!

Hope you all are well. Just thought to share with you on how I went troubleshooting an issue on our Sharepoint 2010 box.


Error while saving site as template via Site settings > Save as template

Microsoft.SharePoint.SPException: Feature definition with Id  failed validation
Medium   Solution Deployment : Missing one or more of the following attributes from the root node in solution Room Reservations 4.wsp: assembly '', type ''. a6d46846-5092-4317-9e75-05afda727463
02/19/2013 12:27:17.80 w3wp.exe (0x67A0)                       0x9590 SharePoint Foundation         Runtime                       tkau Unexpected Microsoft.SharePoint.SPException: Feature definition with Id 8cc022f5-2271-4618-9e82-b03cc11bd179 failed validation, file '1RoomReservations4ListInstances\ElementsFields.xml', line 43, character 513: The 'RowOrdinal2' attribute is not allowed.    at Microsoft.SharePoint.Administration.SPSolutionPackage.SolutionFile.FeatureXmlValidationCallBack(Object sender, ValidationEventArgs evtargs)     at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)     at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)     at System.Xml.XsdValidatingReader.ValidateAttributes()     at System.Xml.XsdValidatingReader.ProcessElementEvent()     at System.Xml.XsdVa... a6d46846-5092-4317-9e75-05afda727463


1. Save the site to solution gallery
2. Had to fix the wss.xsd schema file in 14 hive i.e. add this line  <xs:attribute name="RowOrdinal2" type="xs:int" />

No comments: