External PowerShell scripts in Automic end with error message.
search cancel

External PowerShell scripts in Automic end with error message.

book

Article ID: 248112

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The Powershell job is failing with the following error message:

Unexpected token 'JNR=0002050475' in expression or statement.
At C:\temp2\0100\0002050475\0002050475_0001.ps1:5 char:54
+ ... ogram Files\Automic\windows5\bin\UCXJWX6M.EXE" JNR=0002050475 MNR=010 ...

Environment

Release : 21.0, 12.3.8

Component : AUTOMATION ENGINE

Cause

Configuration.

Resolution

The Windows agent is installed in C:\Program Files\Automic. To avoid the space in 'Program Files' the agent needs to be started with the short name form Service Manager Dialog.

C:\Progra~1\Automic\windows\bin\ucxjwx6.exe

Instead of:

C:\Program Files\Automic\windows\bin\ucxjwx6.exe