{"id":37827,"date":"2024-04-12T15:49:01","date_gmt":"2024-04-12T10:19:01","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=37827"},"modified":"2024-11-28T14:55:43","modified_gmt":"2024-11-28T09:25:43","slug":"how-to-revert-the-managed-solutions-version-in-case-of-an-erroneous-upgrade-using-cli-in-dynamics-365","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/04\/how-to-revert-the-managed-solutions-version-in-case-of-an-erroneous-upgrade-using-cli-in-dynamics-365\/","title":{"rendered":"How to revert the managed solution&#8217;s version in case of an erroneous upgrade (Using CLI) in Dynamics 365?"},"content":{"rendered":"<p style=\"text-align: justify;\">In Dynamics 365, managed solutions play a crucial role in deploying customizations and extensions across environments. However, managing solution versions can sometimes be challenging, especially when dealing with updates, dependencies, and compatibility issues.<\/p>\n<p style=\"text-align: justify;\">Recently, while working on a solution update, we needed to clone the solution and provide it to the client. However, during this process, the default version was set to 9.1, and we mistakenly increased it to 9.1.0.31 instead of 9.0.1.31, as shown in the screenshot below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37829\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1.png\" alt=\"revert the managed solution version\" width=\"1282\" height=\"379\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1.png 1282w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1-300x89.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1-1024x303.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1-768x227.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-1-660x195.png 660w\" sizes=\"(max-width: 1282px) 100vw, 1282px\" \/><\/p>\n<p style=\"text-align: justify;\">When we tried to manually import the solution with the correct version number, a dialog box appeared with an error message stating the solution for upgrade must have a higher version number than the existing solution.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37828\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-2.png\" alt=\"revert the managed solution version 1\" width=\"1024\" height=\"489\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-2.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-2-300x143.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-2-768x367.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-2-660x315.png 660w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p style=\"text-align: justify;\">Since the solution contains dependencies, simply uninstalling it would result in data loss. Here&#8217;s how to fix the issue!<\/p>\n<ol style=\"text-align: justify;\">\n<li>Install the <a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/cli\/introduction?WT.mc_id=DX-MVP-5004571\" target=\"_blank\" rel=\"noopener\">Power Platform CLI tools<\/a>.<\/li>\n<li>Create a connection to the environment where the solution version is incorrect using &#8220;<a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/cli\/reference\/auth?WT.mc_id=DX-MVP-5004571#pac-auth-create\" target=\"_blank\" rel=\"noopener\">pac auth create<\/a>.\u201d<\/li>\n<li>Ensure this environment is selected before proceeding to the next step with &#8220;<a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/cli\/reference\/auth?WT.mc_id=DX-MVP-5004571#pac-auth-select\" target=\"_blank\" rel=\"noopener\">pac auth select<\/a>&#8220;.<\/li>\n<li>Export the solution with the correct version number.<\/li>\n<li>Import the solution using the Power Platform CLI tools via &#8220;<a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/developer\/cli\/reference\/solution?WT.mc_id=DX-MVP-5004571#pac-solution-import\" target=\"_blank\" rel=\"noopener\">pac solutions import<\/a>.&#8221;<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37830\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3.png\" alt=\"revert the managed solution version \" width=\"1642\" height=\"456\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3.png 1642w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3-300x83.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3-1024x284.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3-768x213.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3-1536x427.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-3-660x183.png 660w\" sizes=\"(max-width: 1642px) 100vw, 1642px\" \/><\/p>\n<p style=\"text-align: justify;\">Once the import process is complete, you can verify that the version has been corrected.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37831\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4.png\" alt=\"revert the managed solution version\" width=\"1313\" height=\"537\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4.png 1313w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4-300x123.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4-1024x419.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4-768x314.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/revert-the-managed-solution-version-4-660x270.png 660w\" sizes=\"(max-width: 1313px) 100vw, 1313px\" \/><\/p>\n<h2 style=\"text-align: justify;\"><u>Conclusion<\/u>:<\/h2>\n<p style=\"text-align: justify;\">We successfully resolved the version mismatch issue by downgrading the solution using CLI commands, ensuring that the customizations remained intact. If you encounter a similar scenario where the solution contains the same customizations as the one with the wrong version, you can follow the above-mentioned approach to resolve the issue effectively.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/kanban-board-dynamics-365-crm\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-36453 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/11\/Kanban-Board-1.gif\" alt=\"Kanban Board\" width=\"800\" height=\"200\" \/><\/a><\/p>\n<p><strong>About Sam Kumar<\/strong><\/p>\n<p>Sam Kumar is the Vice President of Marketing at Inogic, a Microsoft Gold ISV Partner renowned for its innovative apps for Dynamics 365 CRM and Power Apps. With a rich history in Dynamics 365 and Power Platform development, Sam leads a team of certified CRM developers dedicated to pioneering cutting-edge technologies with Copilot and Azure AI the latest additions. Passionate about transforming the CRM industry, Sam\u2019s insights and leadership drive Inogic\u2019s mission to change the \u201cDynamics\u201d of CRM.<\/p>\n<p>More about\u00a0<a href=\"https:\/\/www.linkedin.com\/in\/inogic\/\" target=\"_blank\" rel=\"noopener\">Sam Kumar<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Dynamics 365, managed solutions play a crucial role in deploying customizations and extensions across environments. However, managing solution versions can sometimes be challenging, especially when dealing with updates, dependencies, and compatibility issues. Recently, while working on a solution update, we needed to clone the solution and provide it to the client. However, during this\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/04\/how-to-revert-the-managed-solutions-version-in-case-of-an-erroneous-upgrade-using-cli-in-dynamics-365\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"featured_media":0,"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],"tags":[2865],"class_list":["post-37827","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","tag-managed-solution"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37827","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=37827"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37827\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=37827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=37827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=37827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}