Wednesday, January 31, 2018

Sitecore Experience Commerce - Cannot validate argument on parameter Path

During the installation of Sitecore Experience Commerce 9.0 the following error appeared in the PowerShell window:
Extracting CommerceServices from  to C:\inetpub\wwwroot\CommerceOps_Sc9 
PS>TerminatingError(Expand-Archive): "Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again." 
>> TerminatingError(Invoke-DeployCommerceContentTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
This was caused because the engine and identity server projects should be compiled into a zip file and not just a folder.

This is the correct example - the project output is contained in a zip file
The files simply appearing in the folder is incorrect and will cause the error
This was quite a simple fix, and once zipped the install should progress as expected.

No comments:

Post a Comment