Sunday, May 26, 2019

Sitecore XC 9.2- Fix for Install-SitecoreConfiguration : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class



Recently, While doing the reinstallation of Sitecore commerce, I got below error.

[------------------------ CommerceEngine-Ops_CreateAppPool : AppPool -------------------------------------------------]
Resolving ConfigFunction extension 'concat'
Resolved 'Invoke-ConcatConfigFunction'
Resolving ConfigFunction extension 'concat'
Resolved 'Invoke-ConcatConfigFunction'
Invoke-ConcatConfigFunction
Concatenating: \ sitecore
Result: \sitecore
Invoke-ConcatConfigFunction
Concatenating: sitecore \sitecore
Result: sitecore\sitecore
Creates or updates the app pool.
Install-SitecoreConfiguration : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class
factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At C:\deploy\SIF.Sitecore.Commerce.3.0.28\Deploy-Sitecore-Commerce.ps1:95 char:1
+ Install-SitecoreConfiguration @params -Verbose *>&1 | Tee-Object "$PS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 01:44:59

Solution - I have reviewed and identify it's because of using the 32 bit Powershell instead of 64 bit

Here is the error log file.




Saturday, May 4, 2019

Sitecore XC 9.2 - Add a new plugin steps.

There are two VSIX templates available for creating Sitecore Commerce Plugin

1.  Sitecore Commerce Engine Template developed By Andrew Sutherland

This will require to create a simple scaffolding plugin project
Allows creation of individual item-specific code file for commands, controllers, pipelines, pipeline blocks, etc.
We can download it from the marketplace -Here

2. Commerce.Plugin.vsix – Sitecore Commerce SDK

It will need a few cleanups and a lot of predefine simple code setup.


It's compatible with vs 2017.  if you have vs2019 - You may find below error in the log -

11/20/2019 1:46:39 AM - Found installed product - Global Location
11/20/2019 1:46:39 AM - Found installed product - Visual Studio Community 2019
11/20/2019 1:46:39 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Start the installation -



Setup a new project -


Sample project structure -