{"id":29140,"date":"2024-05-29T08:46:36","date_gmt":"2024-05-29T08:46:36","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=29140"},"modified":"2024-05-29T08:46:36","modified_gmt":"2024-05-29T08:46:36","slug":"powershell-error-encountered-the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-during-configuring-it-in-sage-x3-console","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/29\/powershell-error-encountered-the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-during-configuring-it-in-sage-x3-console\/","title":{"rendered":"Powershell error encountered \u2018The certificate chain was issued by an authority that is not trusted\u2019 during configuring it in Sage X3 Console"},"content":{"rendered":"\n<p>In Sage X3, we may come across this error \u2018The certificate chain was issued by an authority that is not trusted\u2019\u2019 while trying to configure Application in the console. This issue occurs when you upgrade runtime to any version 95.2.85 and greater.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><imgtarget=\"_blank\" rel=\"noopener noreferrer\"><img fetchpriority=\"high\" width=\"1024\" height=\"652\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1-1024x652.png\" alt=\"PowerShell error\" class=\"wp-image-29141\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1-1024x652.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1-300x191.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1-768x489.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1-660x420.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-error1.png 1260w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Fig01: PowerShell error<\/strong><\/figcaption><\/figure>\n\n\n\n<p><strong>Cause:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Runtime version is 95.2.85 and greater for patch upgaradtion.<\/li>\n\n\n\n<li>Old version of Powershell is installed in the server which is not compatible with Runtime 95.2.85 or greater.<\/li>\n\n\n\n<li>Console solution-&gt; Runtime section-&gt; PowerShell path -&gt; Application Configuration.<\/li>\n<\/ol>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<p>To solve powershell error, follow below steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Check the powershell version. Uninstall existing powershell version through cmd using below &nbsp;commands .<\/li>\n<\/ol>\n\n\n\n<p><strong>Uninstall-module -Name SQLServer -RequiredVersion &#8220;22.2.0&#8221;<\/strong><\/p>\n\n\n\n<p>2. Again run the below command in cmd for installing new powershell.<\/p>\n\n\n\n<p><strong>Install-Module -Name SqlServer -RequiredVersion &#8220;21.1.18256&#8221; -Scope AllUsers -force<\/strong><\/p>\n\n\n\n<p>3. Run below command in cmd.<\/p>\n\n\n\n<p><strong>Get-InstalledModule -Name SqlServer<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><imgtarget=\"_blank\" rel=\"noopener noreferrer\"><img width=\"1024\" height=\"595\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2-1024x595.png\" alt=\"PowerShell Installation cmds2\" class=\"wp-image-29149\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2-1024x595.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2-300x174.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2-768x447.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2-660x384.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmds2.png 1104w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Fi02: PowerShell Installation cmds<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><imgtarget=\"_blank\" rel=\"noopener noreferrer\"><img width=\"1024\" height=\"593\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3-1024x593.png\" alt=\"PowerShell Installation cmd3\" class=\"wp-image-29150\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3-1024x593.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3-300x174.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3-768x445.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3-660x382.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-Installation-cmd3.png 1101w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Fig03: PowerShell Installation cmd<\/strong><\/figcaption><\/figure>\n\n\n\n<p>4. After this rerun\/update runtime component. Make sure runtime service is turned off.<\/p>\n\n\n\n<p>5. Restart runtime service.<\/p>\n\n\n\n<p>6. Then open console.<\/p>\n\n\n\n<p>7. Double click on Solution.<\/p>\n\n\n\n<p>8. In the Runtime section add Powershell path (the drive path where it is installed).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><imgtarget=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" width=\"1024\" height=\"650\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4-1024x650.png\" alt=\"PowerShell path in Console4\" class=\"wp-image-29152\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4-1024x650.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4-300x190.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4-768x487.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4-660x419.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/05\/PowerShell-path-in-Console4.png 1261w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Fig04: PowerShell path in Console<\/strong><\/figcaption><\/figure>\n\n\n\n<p>9. Save the solution.<\/p>\n\n\n\n<p>10. Click on the Application configuration button.<\/p>\n\n\n\n<p><strong>Note:<\/strong> These steps are for only if any powershell version is already installed in the server above command is used only for that.<\/p>\n\n\n\n<p>By doing all the above steps, user can solve encountered PowerShell error in Sage X3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, we may come across this error \u2018The certificate chain was issued by an authority that is not trusted\u2019\u2019 while trying to configure Application in the console. This issue occurs when you upgrade runtime to any version 95.2.85 and greater. Cause: Solution: To solve powershell error, follow below steps: Uninstall-module -Name SQLServer -RequiredVersion\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/29\/powershell-error-encountered-the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-during-configuring-it-in-sage-x3-console\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3642,2,5,3162,6,8,10,12],"tags":[127,4180,4178,392,2616,4179,4177,1716,1762,1822,1839,2871,1927,1945,3966],"class_list":["post-29140","post","type-post","status-publish","format-standard","hentry","category-sage-x3","category-configuration","category-features","category-greytrix","category-installation","category-sage-erp-x3","category-standard","category-sage-x3-upgrade","tag-application","tag-command-prompt","tag-configurations","tag-console","tag-database","tag-installations","tag-powershell","tag-runtime","tag-sage-enterprise-management","tag-sage-x3","tag-sage-x3-blogs","tag-sage-x3-functional-blogs","tag-sage-x3-services","tag-sage-x3-technical-blogs","tag-x3-solutions"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=29140"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29140\/revisions"}],"predecessor-version":[{"id":29158,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/29140\/revisions\/29158"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=29140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=29140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=29140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}