relationships undefined name

DSLKTB
Tera Contributor

Hi all,

 

I used to be able the see the name of the CI to which another CI was mapped to in the Relationships tree. But for some reason, even though the relationships are still there, the name of the CI is "undefined". Any idea why?

DSLKTB_0-1767970669909.png

Thank you for your help

 

2 REPLIES 2

SumanthDosapati
Mega Sage

@DSLKTB 

Is the name shown as undefined in cmdb_ci table also? 

Or check if it is a broken reference (for example deleted record's sys_id)?

 

Regards,
Sumanth

Itallo Brandão
Mega Guru

Hi there,

Looking closely at your screenshot, I noticed that the main CI at the very top of the form is displayed as <No name>.

This strongly suggests that this is a Data Quality issue rather than a system bug.

The Explanation: The Relationship Formatter (the tree view) relies on the name attribute of the CI to generate the label for each node. In JavaScript/Angular, if the system tries to retrieve the value of a field that is null or empty to display it as a label, it often defaults to the string "undefined".

Troubleshooting Steps:

  1. Check the Data: Open one of those related CIs (the ones showing as undefined) in a standard list view or form view.

  2. Verify the Name Field: Is the Name field actually populated?

    • If the Name is empty, that is the root cause. You likely have a Discovery source or Import Set that is creating CIs without a valid name.

  3. Check ACLs (Less likely): If the Name field is populated but you still see "undefined", verify if you have Read Access (ACL) to the name column of those specific classes. However, usually, ACL issues display blank or "Security constraints" rather than "undefined".

My bet is on empty name fields in the database.

If this response helps you solve the issue, please mark it as Accepted Solution.
This helps the community grow and assists others in finding valid answers faster.

Best regards, Brandão.