Script function "SYS_USER_NAME" and predefined variable "&$USER_FL#" truncate user name if it contains space character

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

The Script function "SYS_USER_NAME" and predefined variable "&$USER_FL#" do not return the entire user name if a space is used.

Using a space truncates the rest of the first and / or last name.

Investigation
  • Connect to the AWI or Java GUI and edit your user object to add a second first name and/or a second last name.
    For example if your first name is "John" change it to "John James" and your last name is "Doe" change it to "Doe Doe".
  • Then add a SCRI object with the content below:
:PRINT &$USER_FL#
:SET &LOGLN# = SYS_USER_LNAME()
:PRINT "Login information: User's first and last names are &LOGLN#."

Results

Expected: Both :PRINT lines should return "John James Doe Doe".
Actual: Both return "John Doe" only.
Cause:
Cause type:
Defect
Root Cause: Script function SYS_USER_LNAME does not return the full name if SPACES are used in first or last name. Value is cut after first space.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: In Progress

Fix Version(s):
Automation Engine 12.2.0 - Planned release date: 2018-06-19
Automation Engine 12.1.2 - Planned release date: 2018-05-21
Automation Engine 12.0.5 - Planned release date: 2018-05-07
Automation Engine 11.2.7 - Available
Additional Information:
Workaround :
Use "_" to separate names. For instance " John_James Doe_Doe".