Exporting Assets objects fails with error "Something went wrong. Contact administrator" in Assets

Still need help?

The Atlassian Community is here for you.

Ask the community

 

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:

  1. Try to edit one of the objects and find all the attributes that are mandatory. You will see an asterisk mark:
  2. Make note of all the attributes that are mandatory
  3. 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
  4. 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:

  1. Access your schema and look for the objects.
  2. Click on "Edit"
  3. Set a dummy value for the affected reference type attribute 
  4. Save the changes.
  5. Edit the object once again and remove the value.
  6. Save the changes one more time.


Last modified on Nov 5, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.