Wednesday, January 31, 2018

Sitecore Experience Commerce - SiteUtilityPages path error

When attempting to install Sitecore Experience Commerce 9.0 the following error would appear:
Install-SitecoreConfiguration : Cannot validate argument on parameter 'Source'. The " Test-Path $_ " validation script
for the argument with value
"D:\Projects\MyProject\Install\CommerceDeploy\SIF.Sitecore.Commerce.1.0.1748\-ChildPathSiteUtilityPages" did not
return a result of True. Determine why the validation script failed, and then try the command again.
At D:\Projects\MyProject\Install\CommerceDeploy\SIF.Sitecore.Commerce.1.0.1748\Deploy-Sitecore-Commerce.ps1:70 char:1
+ Install-SitecoreConfiguration @params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
The problem traces back to the installation PowerShell script and the following line:
SiteUtilitiesSrc = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath"SiteUtilityPages" )
There is no space after the -ChildPath which screws up the path in PowerShell, it should be:
SiteUtilitiesSrc = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SiteUtilityPages" )
The installation will now continue as expected.

No comments:

Post a Comment