PREP_PROCESS_REPORT fails if search string ends in trailing blank
search cancel

PREP_PROCESS_REPORT fails if search string ends in trailing blank

book

Article ID: 88085

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
N/A

When doing a PREP_PROCESS_REPORT on a search term with a trailing blank at the end of the search term, the search term is not found causing the PREP_PROCESS_REPORT to end in a status of NOK.

Investigation

Example:
Echo command in the Process tab:
This is the Test Text for XYZ 

PREP_PROCESS_REPORT in the Post process tab:
 
:set &Report# = PREP_PROCESS_REPORT(,,'REP','*XYZ ')
:set &Error# = '1'
:process &Report#
: set &Error# = '0'
: set &Info# = get_process_line (&Report#)
: print &Info#
:endprocess
:close_process &Report#
:if &Error# = '1'
: print "NOK"
:else
: print "OK"
:endif

Results

The PREP_PROCESS_REPORT ends in a status of  NOK (Not Ok) due to the trailing blank at the end of the search term *XYZ. 

 

Environment

OS Version: N/A

Cause

Cause type:
Defect
Root Cause: PREP_PROCESS_REPORT doesn’t work with trailing blanks, if used as a filter without wildcard character at the end.

Important Note: Report-lines without trailing blanks are not found

Resolution

Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Automation Engine 12.0.2 - Available
Automation Engine 11.2.5 - Available

Additional Information

Workaround :
N/A