During a configuration of one of mine Commerce Server Staging (CSS) project, I discovered a small bug in the scheduling configuration.
This bug is firing during the creation or the modification of a CSS project.
So, here is the scenario…
For scheduling, the CSS, I used the CSS’s mmc:
Once you click “ok” (for creation or modification), CSS creates automatically a windows task in the Task scheduler:
The issue is that one of the parameters for this task is wrong. If you edit the task, you can see that the action text box uses a wrong call format to the program:
The call to the executable is not demarcate with the double quote (“). So the task tries to run “c:\program” with the argument “Files (x86)\Microsoft Commerce Server 2007\Staging\Bin\CSS.exe”… Which is wrong ^^
To correct that, just demarcate the path to the program with double quotes :
”c:\program Files (x86)\Microsoft Commerce Server 2007\Staging\Bin\CSS.exe”
Least but not last and for your information, the task is running under the default account of the CSS Service. So, if you want to change it, you have to configure it in the scheduled task. In the two cases, check if your account has the “Open the session as a task” permission.
Attention: On the create or modification event, the task is fully re-created. So, make sure to check your scheduled task configuration for each action in the CSS Schedule.