1

I am getting the cast error while installing the Sitecore commerce 9.

Error:

Install-SitecoreConfiguration : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'SitecoreBizFxServicesContentPath'. Specified method is not supported. At C:\deploy\SIF.Sitecore.Commerce.1.2.14\Deploy-Sitecore-Commerce.ps1:80 char:32 + Install-SitecoreConfiguration @params + ~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Install-SitecoreConfiguration], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgument,Install-SitecoreConfiguration

  • Welcome to SSE community Sai Raj. Can you make sure the path you provided in 'SitecoreBizFxServicesContentPath' is pointing to a specific file, else you can also pass folder name with the version number rather using the wildcard. – Amitabh Vyas Aug 28 '18 at 12:48
  • I would recommend setting this attribute in your ps1 script like this: SitecoreBizFxServicesContentPath = Resolve-Path -Path "..\Sitecore.BizFX.1.*" . Change ..\ accordingly to your location. Also check whether you have folder together with zip file with same name. if so delete one of them. This error is usually caused by this as powershell thinks there are two objects with same name... – Peter Procházka Aug 28 '18 at 14:05
  • Thanks, AmitabhVyas, PeterProchazka, The Solution worked fine for me. Changed value SitecoreBizFxServicesContentPath = Resolve-Path -Path "..\Sitecore.BizFX.1.*" to SitecoreBizFxServicesContentPath = Resolve-Path -Path "..\Sitecore.BizFX.1.2.19" – Sai Raj R Aug 28 '18 at 14:30
0

I had run into similar issue. Check the path value for the parameter SitecoreBizFxServicesContentPath and then check the version you have for the zip file. And then change the wildcard to full path to the zip file to resolve. Path as in the Installation script

The file name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.