Cannot find path because it does not exist.

Error:
Install-SitecoreConfiguration : Cannot find path 'C:\inetpub\wwwroot\CommerceOps_Sc9Instn2\wwwroot\config.json'
because it does not exist.
At C:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\My-SC9-XC-Deploy-Sitecore-Commerce -
latest2.ps1:93 char:1
+ Install-SitecoreConfiguration @params -Verbose *>&1 | Tee-Object "$PS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:00:05
Get-Content : Cannot find path 'C:\inetpub\wwwroot\CommerceOps_Sc9Instn2\wwwroot\config.json' because it does not
exist.
At C:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\Modules\InitializeCommerce\InitializeCo
mmerce.psm1:202 char:25
+         $originalJson = Get-Content $pathToJson -Raw  | ConvertFrom-J ...
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\inetpub\wwwr...oot\config.json:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Solution:
The head of my "Includes" in Master_SingleServer.json was pointing to "CommerceEngine-Initialize module" instead of "IdentityServer". The task was actually looking for a folder not yet created under the web root. So, replaced with the correct/complete Master json file that has "IdentityServer" module as start point.

Comments