GENERATE_SCRIPTS_VARS does not abort if the script variable already exists and no action is given
search cancel

GENERATE_SCRIPTS_VARS does not abort if the script variable already exists and no action is given

book

Article ID: 204537

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

According to Documentation: https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/GENERATE_SCRIPT_VARS.htm

GENERATE_SCRIPTS_VARS should abort if the script variable already exists and no action is given.

But in V12.3.4, GENERATE_SCRIPTS_VARS does not abort if the script variable already exists and no action is given.

Script to reproduce the error:

!###################################################################################################
:SET &RESULT# = "Anakin Skywalker"

:SET &V__NAME#  = "RESULT#"
:SET &V__VALUE# = "Darth Vader"
:SET &GSV_RC# = GENERATE_SCRIPT_VARS("VARA.SQLI_SELECT_FROM_DUAL",,)
:PRINT &RESULT#
!###################################################################################################

The used vara VARA.SQLI_SELECT_FROM_DUAL looks like this:

!###################################################################################################
Oracle Statement:
select ? as Value, ? as Name from DUAL

Bind Parameters:
1 = &V__VALUE#
2 = &V__NAME#

Result Format:
{2}
!###################################################################################################

 

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

Software Bug

Resolution

The issue has been confirmed to be a bug and will be fixed with a future service pack for Automation Engine V12.3 .