Function PREP_PROCESS_REPORT returns no value

Document ID : KB000087891
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

PREP_PROCESS_REPORT does not return a value if used on a Task from a different client.
 
Investigation

The following script reads from the report (Logging) of an agent of any type:

In all V11 versions:
 
:SET &HND# = PREP_PROCESS_REPORT(,1035532,"LOG","*02000072*",, ) 
:p &HND# 
:PROCESS &HND# 
:SET &MON_OK# = GET_PROCESS_LINE(&HND#) 
:p "print line * &MON_OK#" 
:ENDPROCESS 
:CLOSE_PROCESS &HND#
 
returns
 
2016-04-29 15:58:18 - U00020408 $PROCESS01

Prior to version 11.2.2, an error was displayed instead of just returning nothing. For the same script, V9 returns the following:
 
2016-04-29 15:52:10 - U0020408 $PROCESS01 
2016-04-29 15:52:10 - U0020408 print line * 20151019/120408.561 - U2000072 Connection to system 'WS900A' initiated.
Cause:
Cause type:
Defect
Root Cause: Change of behavior: Prior to 11.2.2, PREP_PROCESS_REPORT returned an error if the RunID was not valid when the task belonged to a different client.
For security reasons, as of 11.2.2, the function cannot read reports from a different client.
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.

Fix Status: Released

Fix Version(s):
Automation Engine 11.2.2 - Available
Additional Information:
Workaround :
N/A