{"id":4810,"date":"2026-10-28T08:02:17","date_gmt":"2026-10-28T08:02:17","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4810"},"modified":"2026-10-28T08:02:17","modified_gmt":"2026-10-28T08:02:17","slug":"display-rule-still-exist-after-removing-it","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4810","title":{"rendered":"Display Rule Still Exist After Removing It"},"content":{"rendered":"\n<p>Have you ever faced an issue where you made changes to a customization in Dynamics 365 CRM\/Power Platform? For example, you added a display rule to a ribbon button and deployed the changes to the target environment using a managed patch.<\/p>\n\n\n\n<p>Later, the client changed their mind, so you removed the rule and deployed an updated patch. But surprisingly, the old rule was still there!<\/p>\n\n\n\n<p>If you&#8217;ve faced this issue, you&#8217;re in the right place. In this blog, I&#8217;ll explain why this happens and how to resolved it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2026\/10\/RemoveRule.png\"><img decoding=\"async\" loading=\"lazy\" width=\"625\" height=\"240\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2026\/10\/RemoveRule.png\" alt=\"\" class=\"wp-image-4811\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2026\/10\/RemoveRule.png 625w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2026\/10\/RemoveRule-300x115.png 300w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Why Did This Happen?<\/strong><\/p>\n\n\n\n<p>This issue is specifically related to solution patching in Dynamics 365 CRM. It can occur whenever you add a customization through a patch and later decide to remove it.<\/p>\n\n\n\n<p>To understand why this happens, we first need to understand how patches work.<\/p>\n\n\n\n<p>According to the Microsoft documentation:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>\u201cA patch represents an incremental minor update to the parent solution. A patch can add or update components and assets in the parent solution when installed on the target system, but it can\u2019t delete any components or assets from the parent solution.\u201d<\/p>\n<\/blockquote>\n\n\n\n<p>In simple terms, a patch is used to deliver incremental changes to an existing solution. It can add new components or update existing ones, but it cannot delete components from the parent solution.<\/p>\n\n\n\n<p>For example, suppose you added a display rule to a ribbon button and deployed it to the target environment using a managed patch. Later, you removed that display rule from the source customization and deployed another patch.<\/p>\n\n\n\n<p>You might expect the display rule to be removed from the target environment as well. However, this will not happen just by removing the rule from the source and deploying an updated patch.<\/p>\n\n\n\n<p>The reason is that the updated patch does not include instructions to delete the previously deployed customization. As a result, the old display rule can remain in the target environment, even though it is no longer present in the customization XML of your updated patch.<\/p>\n\n\n\n<p>Now that we understand why this happens, let&#8217;s look at how to resolve it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Solve This Issue<\/h2>\n\n\n\n<p>To remove the previously deployed changes from the target environment, you need to deploy an updated solution using the appropriate solution upgrade process rather than relying on another patch.<\/p>\n\n\n\n<p>Instead of selecting <strong>Clone a Patch<\/strong>, use the <strong>Clone Solution<\/strong> option in your development environment.<\/p>\n\n\n\n<p>When you clone the base solution, all its child patches are rolled up into the base solution, creating a new solution version. Unlike a patch, a cloned solution allows you to add, update, and delete components and assets.<\/p>\n\n\n\n<p>When you deploy the cloned solution as a managed solution to the target environment, it acts as a replacement for the previous version of the solution. This allows you to deliver major updates, including the removal of components or customizations that are no longer required.<\/p>\n\n\n\n<p><strong>Summary<\/strong><\/p>\n\n\n\n<p>Use patches for incremental changes, but when you need to remove previously deployed customizations, consider cloning the base solution and deploying it through the appropriate upgrade process.<\/p>\n\n\n\n<p>Hope it will help someone!!<br><strong>Keep learning and Keep Sharing!!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever faced an issue where you made changes to a customization in Dynamics 365 CRM\/Power Platform? For example, you added a display rule to a ribbon button and deployed the changes to the target environment using a managed patch. Later, the client changed their mind, so you removed the rule and deployed an updated patch. But surprisingly, the&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4810\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4811,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402,1133,6,275,728],"tags":[1179,1177,1178],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4810"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4810"}],"version-history":[{"count":2,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4810\/revisions"}],"predecessor-version":[{"id":4813,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4810\/revisions\/4813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4811"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}