Exporting Assets objects fails with error "Something went wrong. Contact administrator" in Assets
プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。
要約
Exporting Asset objects fails with the error "Something went wrong. Contact administrator"
環境
Jira Service Management Assets cloud
診断
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
原因 1
The customer might be hitting one of these bugs: - JSDCLOUD-9951Getting issue details... STATUS Or - JSDCLOUD-9971Getting issue details... STATUS
ソリューション
As a workaround choose "data consistent" in the Format drop-down when exporting the objects:
For the bug - JSDCLOUD-9971Getting issue details... STATUS split the objects to be exported into smaller batches using AQL condition
原因 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.
ソリューション
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
原因 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.
ソリューション
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
- 変更を保存します。
- Edit the object once again and remove the value.
- Save the changes one more time.