ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

ACTIVATE_UC_OBJECT does not work with objects with trailing numbers in their name

book

Article ID: 88151

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
Error: U4006586 Error found in object 'SCRI.REQ00114296.ACTIVATOR(Process)', line
'1'. ('U1001321 Expecting 'String/Variable' as function parameter '1'.')

If you try to save an object with ACTIVATE_UC_OBJECT where the name of the object contains a leading number, e.g. if a script with name SCRI.REQ00114296.ACTIVATOR contains this line
 
:SET &ACTOBJ# = ACTIVATE_UC_OBJECT(01_TEST_ACT_OBJ)

this error is reported.
 
Error: U4006586 Error found in object 'SCRI.REQ00114296.ACTIVATOR(Process)', line
'1'. ('U1001321 Expecting 'String/Variable' as function parameter '1'.')

If you use a name without a leading number like
 
:SET &ACTOBJ# = ACTIVATE_UC_OBJECT(TEST_ACT_OBJ_01)

no error appears.

If an AE name starts with a number, it must always be enclosed in double quotes. I.e., for the above example, you have to change the command to:

:SET &ACTOBJ# = ACTIVATE_UC_OBJECT("01_TEST_ACT_OBJ")

Cause

Cause type:
By design
Root Cause: If an AE name starts with a number (e.g. 01_TEST_ACT_OBJ), it has to be enclosed in double quotes. This is as designed, please see documentation: http://docs.automic.com/documentation/AE/10.0/german/AE_WEBHELP/help.htm?product=awa#ucaaeh.htm

Environment

Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Component:

Resolution

This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Additional Information

Workaround :
If an AE name starts with a number (e.g. 01_TEST_ACT_OBJ), it has must always be enclosed in double quotes. I.e., for the above example, you have to change the command to::SET &ACTOBJ# = ACTIVATE_UC_OBJECT("01_TEST_ACT_OBJ")