Inconsistent behavior for function MODIFY STAUS with more then 32 characters

Document ID : KB000094897
Last Modified Date : 25/05/2018
Show Technical Document Details
Issue:
The system shows a different Behavior in different scenarios.

Scenario 1:
There is one workflow (JOBP) with one script (SCRI) in it. In the JOBP the variable &STATUS_TEXT_LONG# is published for the whole workflow:
 
:SET &STATUS_TEXT_LONG# = "Status text with more than thirtytwo characters (65 in this case)"
:PUBLISH &STATUS_TEXT_LONG#,,"WORKFLOW"

In the task properties of the SCRI in the JOBP, the status text is changed by MODIFY STAUS in the postconditions using the variable &STATUS_TEXT_LONG# published in the JOBP:
 
User-added image

When executed, the Status-text from &STATUS_TEXT_LONG# is shortened to 32 characters and an error is displayed in the activation report (ACT) of the SCRI:
 
U00020792 Runtime error in object 'XC_INC.ACTION.MODIFY_STATUS', line '00011': Value of parameter '3' too long. Allowed length is '32'.


Scenario 2:
A job JOBS (can be Windows, Linux, ...) contains in the postprocess:
 
:SET &STATUS_TEXT_LONG# = "Status text with more than thirtytwo characters (65 in this case)"
:PUBLISH &STATUS_TEXT_LONG#,,"WORKFLOW"
:MODIFY_STATE STATUS_TEXT=&STATUS_TEXT_LONG#

I.e. here the status text is set by function :MODIFY_STATE STATUS_TEXT. When executed, the status text from &STATUS_TEXT_LONG# is shortened to 32 characters but nowhere in the reports an error is shown.

I.e., in scenario 1, an error message is generated when shortening the text to 32 characters, in scenario 2 there is no error message. This is an inconstant behavior. 
Cause:
An error has been fixed where the status text is not truncated correctly when set via post conditions if the status text has more than 32 characters, resulting in the following error message:
 
"U00020792 Runtime error in object 'XC_INC.ACTION.MODIFY_STATUS', line '00011': Value of paramter '3' too long. Allowed length is '32'."
Resolution:
Install the fixed Version or a newer one:

AE Server, Initialdata and Automic.Web.Interface
  • Automation Engine 12.2.0
  • Automation Engine 12.1.2