CommerceEngine-Ops_StopWebsite : ManageWebsite - The property 'Value' cannot be found on this object. Verify that the property exists.

Error:
[-------------------------- CommerceEngine-Ops_StopWebsite : ManageWebsite -------------------------------------------]
Stops the website if it is running.
[CommerceEngine-Ops_StopWebsite]:[Stop] CommerceOps_Sc9Instn2
Performing the operation "Stop-Website" on target "CommerceOps_Sc9Instn2".
Checking state of Website 'CommerceOps_Sc9Instn2'
Install-SitecoreConfiguration : The property 'Value' cannot be found on this object. Verify that the property exists.
At C:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\My-SC9-XC-Deploy-Sitecore-Commerce -
latest-2.ps1:93 char:1
+ Install-SitecoreConfiguration @params -Verbose *>&1 | Tee-Object "$PS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

Solution:
This was a rookie mistake from my end. Had stopped IIS to get rid of some old websites and app pools and hadn't restarted iis before starting the install. The install failed because it couldn't reach CommerceEngine-Ops website. So, started iis and everything went fine when a new installation was started.

Generally, this error could occur anywhere in the execution/installation process. The obvious reason is the execution is not able to get a required value. So, check if your prior step(s) are fine and the execution process is passing the required params for the concerned task.

If installing Sitecore Commerce, check the task dependency list and JSON include file invocation flow to understand dependencies better.

Comments

Popular Posts