HCL Commerce Developer

InvalidOperation: (replace:String)

When you are preparing a database for HCL Commerce Version 9, you need to run the initdb_db2_sample utility. During execution, you might encounter an InvalidOperation: (replace:String) error.

Problem

You are using Windows Powershell Version 2 or earlier.

Solution

To check the version, open Powershell and enter the following command.
$PSVersionTable.PSVersion
If you are not using Powershell 3.0 or later, then install a newer version.