Exporting Assets objects fails with error "Something went wrong. Contact administrator" in Assets
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
Exporting Asset objects fails with the error "Something went wrong. Contact administrator"
Diagnosis
When we check the logs at our end, the following exception is reported which suggests that for at least one of the objects being exported, either has a required field missing or a reference field is broken:
java.lang.NullPointerException: this.referencedObjectBeanId must not be null
Cause 1
The customer might be hitting one of these bugs: JSDCLOUD-9951 - Getting issue details... STATUS Or JSDCLOUD-9971 - Getting issue details... STATUS
Solution
As a workaround choose "data consistent" in the Format drop-down when exporting the objects:
For the bug JSDCLOUD-9971 - Getting issue details... STATUS split the objects to be exported into smaller batches using AQL condition
Cause 2
At least one of the objects being exported has an attribute that has minimum cardinality set to 1, however, there is no value specified for the attribute in at least 1 object. These attributes need to have at least one value.
Solution
Follow the below steps to find the affected attributes:
- Try to edit one of the objects and find all the attributes that are mandatory. You will see an asterisk mark:
- Make note of all the attributes that are mandatory
Execute the below AQL on the object type to make sure there are no objects that do not have a value set the mandatory attributes:
"Vendor name" IS EMPTY OR "OS" IS EMPTY
For the affected objects, set a value for the mandatory attributes and perform the export again
Cause 3
At least one of the objects being exported has a reference attribute pointing to a value(referenced object) that no longer exists. These broken values need to be removed.
Solution
Please contact Atlassian support to help you find the affected objects. Once you have the list of affected objects and their broken values:
- Access your schema and look for the objects.
- Click on "Edit"
- Set a dummy value for the affected reference type attribute
- Save the changes.
- Edit the object once again and remove the value.
- Save the changes one more time.