Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

We're getting this error when trying to backup from cloud and restore to server

Error importing data: org.xml.sax.SAXException: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:GroupAttribute][id,13747] (SQL Exception while executing the following:INSERT INTO atis_jira_schema.cwd_group_attributes (ID, group_id, directory_id, attribute_name, attribute_value, lower_attribute_value) VALUES (?, ?, ?, ?, ?, ?) (Cannot insert duplicate key row in object 'atis_jira_schema.cwd_group_attributes' with unique index 'uk_group_attr_name_lval'. The duplicate key value is (<NULL>, <NULL>, <NULL>).)) java.lang.Exception: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:GroupAttribute][id,13747] (SQL Exception while executing the following:INSERT INTO atis_jira_schema.cwd_group_attributes (ID, group_id, directory_id, attribute_name, attribute_value, lower_attribute_value) VALUES (?, ?, ?, ?, ?, ?) (Cannot insert duplicate key row in object 'atis_jira_schema.cwd_group_attributes' with unique index 'uk_group_attr_name_lval'. The duplicate key value is (<NULL>, <NULL>, <NULL>).))

1 answer

@Daniel Joseph McLean,

Were you able to resolve this?

I get the same error (the backup came from Cloud and is being restored to Server). I get the exact same NULL insert error on the same table. My SQL Server 2017 database collation is (per Atlassian documentation) set to Latin1_General_CI_AI and I am using the :latest tag of https://hub.docker.com/r/atlassian/jira-software (which is currently 8.14.0).

I've tried "cleaning" the exported data using the atlassian-xml-cleaner-0.1 JAR trick but still get the same error. 

Your post is literally the only Google result for the error, table and NULL insert combination so fingers crossed that you figured this one out :-)

Hi Bobby we did get this issue resolved: 

 

If I remember correctly, I looked at the error log and found the name of the index that was being problematic and deleted from the existing database. Once it got past that roadblock it restored without errors. Then there was the default admin user account that is created/reset. I think I just Googled that.

Like Bobby Hartsfield likes this

Credit for that resolution goes to one of our engineers 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

321 views 13 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you