Read buffer variable UC_CAUSE_NR omits 1 value from 10-digit RunId when called in RunTime tab

Document ID : KB000087912
Last Modified Date : 14/04/2018
Show Technical Document Details
Error Message :

The read buffer variable UC_CAUSE_NR omits 1 value from a 10-digit RunId when called from the RunTime tab.

This only happens when calling the script as described below in the investigation section.


A script (in the screenshot SCRI.ACTIVATED.01, red) is activated in the Runtime-Tab of an Object (JOBS.WIN.ACTIVATOR.01). It is called as 'Else execute:' in the 'Definition for ENDED_OK'. The RunId of the caller, &UC_CAUSE_NR, is read in the script and just displayed. It can be seen in the Message Window, that the RunId of the caller has 10 digits. However, only 9 digits are displayed (it is the same for PRINT instead of SEND_MSG).

Cause type:
Root Cause: The content of UC_CAUSE_NR, UC_CAUSE_STATE, UC_CAUSE_RETCODE variables isn't always written in the same format.
Update to the fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Automation Engine 12.0.0 - Available
Additional Information:
Workaround :
Use script function SYS_ACT_PARENT_NR to get the RunId of the activator.