-
Bug
-
Resolution: Answered
-
Medium
-
11
-
Severity 3 - Minor
-
15
-
Issue Summary
Where there is a validation error on an Assets attribute during import, the object update or creation will silently fail without leaving an entry in the import history.
Validation errors may include User type errors, where a user in a given attribute is no longer a member of a group the attribute is restricted to, or unique constraint errors.
Steps to Reproduce
The steps below demonstrate the behavior with the User type attribute
Group setup
- Within the Admin Hub (https://admin.atlassian.com) create a group such as assets-test
- Add two users to this group
Assets Schema setup
- Create a blank Schema
- Create an object type called Import Test
- Add two User type attributes to the object type
- You can name one as Approvers
- The other as Managers
- Restrict the attributes to your assets-test group
Create object
- Create a new object in the Schema, call it Test
- Name the object
- Add one of the users from the group to the Approvers attribute
- Once the user is added to the attribute, go back to the group configuration in the Admin Hub and remove the user from the group
Prepare CSV file
Create a file to update the Managers attribute:
Name,Managers Test,60dd6cc5aade49006b942252
Use the account id of the second user in the group.
Configure import
- Create a CSV Import configuration to update the object type in our test
- Select the file that was created in the previous step
- Map the attributes to the CSV file headers
- Run the import
Expected Results
The above will result in a validation error since the initial user that was added to the object attribute is no longer in the group. This should be reflected on the import history, however the import history will show a single entry was identified but no further identifiers will be listed:
Actual Results
The import details page will list no entries on any of the events such as objects deleted, updated, filtered, etc. In this scenario the backend error would show:
InsightException:ValidationInsightException: Validation errors were found: rlabs-insight-attribute-1234: ErrorMessage { i18nKey='rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.InvalidGroups.Users', parameters= [ 60dd6cc5aade49006b942252, assets-test ], additionalMessage=null}
Workaround
- Re-add the user(s) to at least one of the groups that is specified for the attribute
- Remove the group constraint on the attribute
- Remove the user from the attribute via the user interface
- is related to
-
JSDCLOUD-11407 Improve the Assets CSV/External Import Logs to better convey why an Import Fails and why Objects are not created.
- Gathering Interest
- mentioned in
-
Page Loading...