When simulating an event in Desktop Client it fails with this error:
[Thu Jul 01 00:00:00 EDT 2026] [de_25] - Job definition
[MY_JOB_1234] is invalid. Agent name [%VAR(MY_AGENT)] caused an exception during symbolic processing. The error is: The function [%VAR(MY_AGENT)] failed to execute: java.util.concurrent.ExecutionException:
org.mozilla.javascript.EcmaError: ReferenceError: "MY_AGENT" is not defined. (<wascope>#1)
ESP dSeries / Workload Automation DE: 12.x or above
The Global variable in the job / application did not resolve correctly. If there are any hidden or special characters in the value of the global variable then it will result in an exception like this:
failed to execute: java.util.concurrent.ExecutionException: org.mozilla.javascript.EcmaError:Do not copy paste strings in the global variable. It is recommended to type the agent name / strings. Always edit artifacts in the Desktop Client.
Open the Global Variable in Services perspective of Desktop Client. Edit the global variable, delete and retype the agent name:
Note: The agent should exist in the Agent Inventory. The agent does not have to active for simulation to work.
If the agent doesn't exist, then simulation will still continue but a warning message will be shown in simulated jobs screen like this: