"Something's gone wrong" error when viewing objects in an object type
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Viewing objects for a specific object type returns an error "Something's gone wrong".
Something's gone wrong
Our team has been notified. If the problem persists, please contact Atlassian Support.
ERROR: XXXXX
Environment
JSM Assets Cloud
Diagnosis
Inspect the Browser console logs at the time of the error, the following error is returned:
Error: Label should always be a default text attribute
Run an AQL to search if any of the objects have an empty value in the label attribute:
Label is empty
If any object is returned, then move ahead with the next steps to fix it.
Cause
The error occurs because at least one of the objects has an empty value in the "Label" attribute. This is an invalid configuration. An Attribute that is a Label on an Object Type must have a value for every Object. This usually occurs if you have changed your Label attribute.
Solution
To fix this:
- First, set another attribute as the "Label" attribute by going to your attribute configuration and going to ...(three dots) > Set as label . Ensure that this attribute is not empty for any of the objects(prefer the attribute that was previously the "Label" attribute; by default, it is the attribute "Name"). This will load all the objects.
- Next, add values in all the objects for the attribute that you would like to set as "Label". Once this is done, set this attribute back as the Label attribute