book
Article ID: KB0071250
calendar_today
Updated On:
Description
While passing the data from BOM class attribute to the data field or a parameter, the BOM class attribute passes an undefined value incorrectly.
In the form, the data field is displayed as undefined - "com.tibco.n2.javascript.Undefined@3cd59d8a".

Also, undefined is seen while printing the data field using log.write in a script -
13 Jul 2023 04:34:49,888 [PVM:DB Process Worker-8] [INFO ] stdout - Value of auth.x_auth_Z = undefined
13 Jul 2023 04:34:49,889 [PVM:DB Process Worker-8] [INFO ] stdout - Value of z_auth = undefined
13 Jul 2023 04:34:49,889 [PVM:DB Process Worker-8] [INFO ] stdout - Value of auth_text = Omkar
Steps to Reproduce this issue:
- Create BOM Class with the attribute name "x_auth".
- In a business process, read the data using the BOM Class created in step #1
- Display the BOM data read in step #2. It will display the value as "com.tibco.n2.javascript.Undefined@3cd59d8a".
Cause:
The BOM attribute is passing an undefined value because the BOM attribute name used in the BOM class, had an incorrect attribute name. In this example, the problematic BOM class attribute name is of the pattern <single-alphabet>_*.
Any BOM attribute having a naming convention as the below pattern will fail to pass or hold the correct data:
[a-zA-Z]_[A-Z a-z]+
Problematic BOM class attribute name example:
Issue/Introduction
While passing the data from BOM class attribute to the data field or a parameter, the BOM class attribute passes an undefined value "com.tibco.n2.javascript.Undefined@3cd59d8a" incorrectly.