Ensure/Sync default content paths for environment AdventureWorksAuthoring failed in CommerceEngine-Initialize_EnsureSyncDefaultContentPaths : EnsureSyncDefaultContentPaths

Error:
[- CommerceEngine-Initialize_EnsureSyncDefaultContentPaths : EnsureSyncDefaultContentPaths ---------------------------]
Resolving ConfigFunction extension 'concat'
Resolved 'Invoke-ConcatConfigFunction'
Invoke-ConcatConfigFunction
Concatenating: https://commerceshops.sc9Instn1.com
/commerceops/EnsureSyncDefaultContentPaths(environment='envNameValue',shopName='CommerceEngineDefaultStorefront')
Result: https://commerceshops.sc9Instn1.com/commerceops/EnsureSyncDefaultContentPaths(environment='envNameValue',shopNa
me='CommerceEngineDefaultStorefront')
Resolving ConfigFunction extension 'concat'
Resolved 'Invoke-ConcatConfigFunction'
Invoke-ConcatConfigFunction
Concatenating: https://commerceshops.sc9Instn1.com /commerceops/CheckCommandStatus(taskId=taskIdValue)
Result: https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=taskIdValue)
Ensure/Sync default content paths for: AdventureWorksAuthoring
PUT https://commerceshops.sc9instn1.com/commerceops/EnsureSyncDefaultContentPaths(environment='AdventureWorksAuthoring'
,shopName='CommerceEngineDefaultStorefront') with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Checking if https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=3780) has completed ...
GET https://commerceshops.sc9instn1.com/commerceops/CheckCommandStatus(taskId=3780) with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Checking if https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=3780) has completed ...
GET https://commerceshops.sc9instn1.com/commerceops/CheckCommandStatus(taskId=3780) with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Checking if https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=3780) has completed ...
GET https://commerceshops.sc9instn1.com/commerceops/CheckCommandStatus(taskId=3780) with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Checking if https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=3780) has completed ...
GET https://commerceshops.sc9instn1.com/commerceops/CheckCommandStatus(taskId=3780) with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Checking if https://commerceshops.sc9Instn1.com/commerceops/CheckCommandStatus(taskId=3780) has completed ...
GET https://commerceshops.sc9instn1.com/commerceops/CheckCommandStatus(taskId=3780) with 0-byte payload
received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
Ensure/Sync default content paths for environment AdventureWorksAuthoring failed, please check Engine service logs for
more info.
Install-SitecoreConfiguration : ScriptHalted
At C:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\My-SC9-XC-Deploy-Sitecore-Commerce -
latest.ps1:93 char:1
+ Install-SitecoreConfiguration @params -Verbose *>&1 | Tee-Object "$PS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration


ScriptHalted
At C:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\Modules\InitializeCommerce\InitializeCo
mmerce.psm1:236 char:19
+ ...           $(throw Write-Host "Ensure/Sync default content paths for e ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], RuntimeException
    + FullyQualifiedErrorId : ScriptHalted


Solution:
Restart the Sitecore Commerce website instance and app pool. Restart identity server instance and app pool. Reset IIS. Since i don't believe my eyes, i close and reopen powershell in admin mode.  Then, rerun a cut down list of tasks  based on How to run a cutdown list of Sitecore Commerce Install tasks.

Comments