Sitecore Experience Commerce 9.0.2 Installation Error: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter

I got the following error when running Deploy-Sitecore-Commerce.ps1:

Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'SitecoreBizFxServicesContentPath'.



After looking at the value for the 'SitecoreBizFxServicesContentPath' parameter in the deploy script, the only difference I could see was the path was not specifying a particular file as the other parameters where the wildcard (*) was being used. It looked like using the wildcard for a folder name was not supported.

Fix: Updated parameter to use full folder name with the version (Sitecore.BizFX.1.2.19) instead of relying on the wildcard.

After fixing this error, I got a different error for PowerShellExtensionsModuleFullPath, SXAModuleFullPath and SitecoreCommerceEngineZipPath:

Cannot bind argument to parameter because it is null.

The solution was the same as above- I updated the parameters to use the full filename instead of a wildcard.

It was very odd that the wildcard was not working on the above file names, but working for the rest. I'll let this one pass- I've seen weirder things happen.