While installing Sitecore Experience Commerce 9.0 Update 2 I got the error where Sitecore.Commerce.Engine.Connect.2.2.86.update package installation failed and I get the below error:
------------------------------------------------------------------------------------------ InstallPackage : InstallPackage -----------------------------------------------------------------------------------------
Installing package: Sitecore.Commerce.Engine.Connect.2.2.86.update
http://sxa.storefront.com/SiteUtilityPages/InstallPackages.aspx?package=Sitecore.Commerce.Engine.Connect.2.2.86.update
Install-SitecoreConfiguration :
One or more exceptions occurred while processing the subscribers to the 'packageinstall:items:ended' event.
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
}
@media screen and (max-width: 479px) {
pre { width: 280px; }
}
Server Error in '/' Application.
One or more exceptions occurred while processing the subscribers to the 'packageinstall:items:ended' event.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.AggregateException: One or more exceptions occurred while processing the subscribers to the 'packageinstall:items:ended' event.
Source Error:
Line 56: try
Line 57: {
Line 58: entries = UpdateHelper.Install(installationInfo, log, out text);
Line 59: MetadataView view = UpdateHelper.LoadMetadata(installationInfo.Path);
Line 60: var installer = new DiffInstaller(installationInfo.Action);
[1]: https://i.sstatic.net/fQt9S.png
I even tried analysing the Package with Install Update Package from Sitecore and found the below error:
Error installing 'addeditems/master/sitecore/templates/commerce/catalog/commerce catalog/__standard values_{81c273b0-8f34-4371-aa9f-d76bfae6d9ff}'. More info
Some of the installation operation cannot be performed.
An exception occured when trying to install 'addeditems/master/sitecore/templates/commerce/catalog/commerce catalog/__standard values_{81c273b0-8f34-4371-aa9f-d76bfae6d9ff}'.
Details: Microsoft.OData.Client.DataServiceQueryException: An error occurred while processing this request. ---> Microsoft.OData.Client.DataServiceClientException: Status Code: 401; Unauthorized at Microsoft.OData.Client.BaseAsyncResult.EndExecute[T](Object source, String method, IAsyncResult asyncResult) at Microsoft.OData.Client.QueryResult.EndExecuteQuery[TElement](Object source, String method, IAsyncResult asyncResult) --- End of inner exception stack trace --- at Sitecore.Commerce.ServiceProxy.Proxy.GetValue[T](DataServiceQuerySingle`1 query) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetLanguages() at