{"id":19819,"date":"2019-07-24T10:01:34","date_gmt":"2019-07-24T10:01:34","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=19819"},"modified":"2019-07-24T10:01:34","modified_gmt":"2019-07-24T10:01:34","slug":"how-to-resolve-multiple-ribbonrule-with-rule-id-error-in-dynamics-365-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/07\/how-to-resolve-multiple-ribbonrule-with-rule-id-error-in-dynamics-365-crm\/","title":{"rendered":"How to resolve multiple RibbonRule with rule id error in Dynamics 365 CRM"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>In this blog, we will learn how to resolve multiple RibbonRule with rule id error.<\/p>\n<p style=\"text-align: justify;\">Previously, we received a client requirment to add a new button in Application ribbon which already had two buttons. It was necessary to perform some new funcionality which the client required. So we tried to add new ribbon button in application ribbon. However, while adding button in application ribbon we got the following error.<\/p>\n<p><em>Ribbons import: FAILURE: Found more than one RibbonRule with rule id ikl.Form.ApplicationRibbon.DisplayShowHideCheckinBtnForm.EnableRule, rule type 1, entity, and parent RibbonCustomization ca4b0057-d77e-e911-a9c6-000d3a370947<\/em><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19820\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule.png\" alt=\"RibbonRule\" width=\"1409\" height=\"665\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule.png 1409w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule-300x142.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule-768x362.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule-1024x483.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1RibbonRule-660x311.png 660w\" sizes=\"(max-width: 1409px) 100vw, 1409px\" \/><\/p>\n<p>In order to add ribbon button we followed the below steps:<\/p>\n<ol>\n<li>Create one solution in Dynamics CRM with name <strong>\u2018ApplicationRibbon_Original\u2019<\/strong> and add Application Ribbon as component and export that solution.<\/li>\n<li>Then add new button in custimization.xml in <em>RibbonDiffXml (you can use the Ribbonwork bench for the same) and create new zip file with name <strong>\u2018<\/strong><\/em><strong>ApplicationRibbon_updated<em>\u2019<\/em><\/strong>.<\/li>\n<\/ol>\n<p>However, we got same error in the following three scenarios;<\/p>\n<ul>\n<li>When we tried to import the updated solution<\/li>\n<li>When we tried to import same solution \u2018ApplicationRibbon_Original\u2019 without any modification, and<\/li>\n<\/ul>\n<p>When we tried to publish \u2018ApplicationRibbon_Original\u2019 solution from Ribbon workbench<\/p>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19821\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2RibbonRule.png\" alt=\"RibbonRule\" width=\"433\" height=\"380\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2RibbonRule.png 433w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2RibbonRule-300x263.png 300w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/p>\n<p style=\"text-align: justify;\">Next, we removed the duplicate rule from RibbonDiffXml in customization.xml or we removed\u00a0 duplicate rule using Ribbonwork bench, even then the same above error was displayed.<\/p>\n<p><strong>So, in order to resolve this issue we took the below steps:<\/strong><\/p>\n<ol>\n<li>Extarct \u2018ApplicationRibbon_Original\u2019 solution and remove all buttons from application ribbon by putting below RibbonDiffXml in customization.xml and import the solution in Dynamics CRM.<\/li>\n<\/ol>\n<p><em>&lt;RibbonDiffXml&gt;<\/em><\/p>\n<p><em>&lt;CustomActions \/&gt;<\/em><\/p>\n<p><em>\u00a0&lt;Templates&gt;<\/em><\/p>\n<p><em>&lt;RibbonTemplates Id=&#8221;Mscrm.Templates&#8221;&gt;&lt;\/RibbonTemplates&gt;<\/em><\/p>\n<p><em>&lt;\/Templates&gt;<\/em><\/p>\n<p><em>&lt;CommandDefinitions \/&gt;<\/em><\/p>\n<p><em>&lt;RuleDefinitions&gt;<\/em><\/p>\n<p><em>&lt;TabDisplayRules \/&gt;<\/em><\/p>\n<p><em>&lt;DisplayRules \/&gt;<\/em><\/p>\n<p><em>&lt;EnableRules \/&gt;<\/em><\/p>\n<p><em>&lt;\/RuleDefinitions&gt;<\/em><\/p>\n<p><em>&lt;LocLabels \/&gt;<\/em><\/p>\n<p><em>&lt;\/RibbonDiffXml&gt; <\/em><\/p>\n<p>When we export the solution then it is sucessfully imported. Thus, it removes all button from application ribbon.<\/p>\n<ol start=\"2\">\n<li>Next, open customization.xml file of \u2018ApplicationRibbon_Updated\u2019 solution and remove duplicate rule enable rule from RibbonDiffXml (you can use the Ribbonwork bench for the same). Then import the solution successfully to Dynamics 365 CRM, and see new button in Application ribbon.<\/li>\n<\/ol>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this way, you can easily resolve multiple <strong>\u2018RibbonRule with rule id error\u2019<\/strong> and save your valuable time and effort.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/integrations\/inolink-quickbooks-microsoft-dynamics-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter  wp-image-19825\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/Banner-InoLink-QuickBooks-Integration-with-Microsoft-Dynamics-365-Dynamics-CRM-1.jpg\" alt=\"\" width=\"858\" height=\"106\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/Banner-InoLink-QuickBooks-Integration-with-Microsoft-Dynamics-365-Dynamics-CRM-1.jpg 728w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/Banner-InoLink-QuickBooks-Integration-with-Microsoft-Dynamics-365-Dynamics-CRM-1-300x37.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/Banner-InoLink-QuickBooks-Integration-with-Microsoft-Dynamics-365-Dynamics-CRM-1-660x82.jpg 660w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this blog, we will learn how to resolve multiple RibbonRule with rule id error. Previously, we received a client requirment to add a new button in Application ribbon which already had two buttons. It was necessary to perform some new funcionality which the client required. So we tried to add new ribbon button\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/07\/how-to-resolve-multiple-ribbonrule-with-rule-id-error-in-dynamics-365-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":19824,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,49],"tags":[1908],"class_list":["post-19819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-ribbon-buttons","tag-ribbonrule"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=19819"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/19824"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=19819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=19819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=19819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}