CRM Solution Import Error Found more than one RibbonDiff entity

Posted on Posted in MS Dynamics, MS Dynamics CRM

When importing an unmanaged CRM solution from one environment to an other environment you might come across error below

Found more than one RibbonDiff entity

Either this can be fixed by using a 3rd party tool to remove ribbon from relevant entity or easiest option is to unzip solution and go to customisations.xml file and then RibbonDiffXml part, example below

<RibbonDiffXml> <CustomActions /> <Templates> <RibbonTemplates Id=”Mscrm.Templates”></RibbonTemplates> </Templates> <CommandDefinitions /> <RuleDefinitions> <TabDisplayRules /> <DisplayRules /> <EnableRules /> </RuleDefinitions> <LocLabels> <LocLabel Id=”FieldOneSky.HomepageGrid.f1_workorderresource.MainTab.Actions.ChangeStatus.Description”>

………

<RibbonDiffXml/>

In above case error was on f1_workorderresource entity. All you got to do is remove everything between <RibbonDiffXml> and <RibbonDiffXml/> and replace it with

<RibbonDiffXml/>

Zip it and try importing again and it should work.