Windows Jobs fail with RC=9009

Document ID : KB000100755
Last Modified Date : 11/06/2018
Show Technical Document Details
Issue:
Windows JOBS fail because the job messenger ends with Windows error code RC=9009 ("Program is not recognized as an internal or external command, operable program or batch file").

Example for the job messenger output:
 
c:\>C:\Program Files\UC4\AgentWin\bin\UCXJWX6M.EXE JNR=0001124189 MNR=5000 PNR=2303 IPA=192.168.123.1 TYP=S TXT=" Job started"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
ATTENTION - UC4
:JOBMESSENGER failed
JOB ended with RETCODE 0
JOBMSG ended with RETCODE 9009
JOB will abort with RETCODE from JOBMSG step

 
Cause:
The default client 0 object 'HEADER.UNIX', 'HEADER.WINDOWS' cannot handle agent installations in systems where spaces are used within paths (for example, 'c:\Program Files'). Such a path did not work with the shipped initial data.
Resolution:
Solution:
Install the fixed Version or a newer one:
  • Automation.Engine 12.2.0

Workaround:
Edit the parameter UC_EX_JOB_MD in section [VARIABLES] of the agents ini-file. Insert the Windows short path of the job messenger's binary:
 
UC_EX_JOB_MD=C:\PROGRA~1\UC4\AgentWin\bin\UCXJWX6M.EXE\UCXJWX6M.EXE

To get the Windows short path, you can use the command
 
for %I in (.) do echo %~sI

like this:
 
User-added image