SET VALUE throws unnecessary runtime error if string is longer then 1024

Document ID : KB000084857
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
U00020792 Runtime error in object 'XC_INC.ACTION.SET_VALUE', line '00010': Value of paramter '4' too long. Allowed length is '1024'.

In the  Post conditions of a task in a workflow, the Action “SET VALUE” with a string that is longer than 1024 character, throws the above error.

There is no description or limitation written in the documentation on “SET VALUE” and the string length is correct afterwards so the error message is unnecessary.

Reference

Automation Engine 11.2 Documentation:
User Guide > Objects > Alphabetical Listing > Postconditions Tab

1536 characters of Lorem Ipsum...
:SET &LOREM# = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptu"
:PUBLISH &LOREM#,,"TASK"

Than post condition SET VALUE

Set object variable LONGSTRING# to &LOREM# in scope Workflow

The script ends with ENDED_OK and the report shows no error

However, the text in the comment is truncated at 1024 characters.
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: N/A
Resolution:
Update to a fix version listed below or a newer version if available where the online documentation has been modified. 

Added information to :SET and removed it from ADD_Comment.


Everything is working without any problem, no error message in message window.

The value set was not truncated.


Fix Status: Released

Fix Version(s):
Component(s): Documentation

Automation Engine 12.1.1 - Available
Additional Information:
Workaround :
Check to ensure that the string is less then 1024 character long before giving it to SET VALUE.