I'm setting up some scripts to allow the devs on our team to be able to set up local dev environments easily. I've got all scripts for the install working well except for the last step, where it installs the Sitecore DBs and web root. Here's the script:
#define parameters
$prefix = "dev"
$PSScriptRoot = "."
$XConnectCollectionService = "$prefix.xconnect"
$sitecoreSiteName = "$prefix.sc"
$SolrUrl = "https://solr:8983/solr"
$SolrRoot = "C:\solr\solr-6.6.2"
$SolrService = "solr-6.6.2"
$SqlServer = ".\SQLEXPRESS"
$SqlAdminUser = "sa"
$SqlAdminPassword="password"
#install sitecore instance
$sitecoreParams = @{
Path = "$PSScriptRoot\Packages\sitecore-XP0.json"
Package = "$PSScriptRoot\Packages\Sitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip"
LicenseFile = "$PSScriptRoot\Packages\license.xml"
SqlDbPrefix = $prefix
SqlServer = $SqlServer
SqlAdminUser = $SqlAdminUser
SqlAdminPassword = $SqlAdminPassword
SolrCorePrefix = $prefix
SolrUrl = $SolrUrl
XConnectCert = $certParams.CertificateName
Sitename = $sitecoreSiteName
XConnectCollectionService = "https://$XConnectCollectionService" }
Install-SitecoreConfiguration $sitecoreParams
Here's the error I get when I run the script. Happens immediately.
Install-SitecoreConfiguration : Cannot validate argument on parameter 'Path'. The " Test-Path $_ -Type Leaf " validation script for the argument with value "System.Collections.Hashtable" did not return a result of True. Determine why the validation script failed, and then try the command again. At C:\setup\sitecore-dev-install-sc.ps1:18 char:31 + Install-SitecoreConfiguration $sitecoreParams + ~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Install-SitecoreConfiguration], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Install-SitecoreConfiguration
All prerequisites are installed and all other scripts that use the same variables run fine, like the xconnect install, which is very similar. The JSON config file is from the XP Single package download from the Sitecore website. Any ideas what could cause this? Any thoughts on how to debug further?