ApplMailaddresslist is invalid

book

Article ID: 242137

calendar_today

Updated On:

Products

CA Workload Automation DE

Issue/Introduction

After creating a new global variable with email ID and adding the variable under notifications for a job, the following errors are appearing.

 

com.ca.wa.comp.schedulerserver.appl.ApplicationGenerateException: Could not resolve %VAR(‘_VARNAME’, ’VAR__CONTEXT’) in ApplMailaddresslist. The exception is: The function [%VAR(‘_VARNAME’, ’VAR__CONTEXT’)] failed to execute: java.util.concurrent.ExecutionException: org.mozilla.javascript.EvaluatorException: Compilation produced 7 syntax errors.

illegal character on line 1 offset 5, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) syntax error on line 1 offset 5, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) illegal character on line 1 offset 13, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) syntax error on line 1 offset 14, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) illegal character on line 1 offset 16, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) illegal character on line 1 offset 29, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’) syntax error on line 1 offset 29, line source: VAR(‘_VARNAME’, ’VAR__CONTEXT’)

Cause

The variable single quote was copied from MS word and the character became corrupt.

Environment

Release : 12.2

Component : CA WORKLOAD AUTOMATION DE (DSERIES)

Resolution

The problem was solved by cold starting the server and manually replacing the single quote character.