During import of data into JIRA get Duplicate entry '10000' for key 'PRIMARY'

When I import the exported data from another JIRA system I get this error.

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '10000' for key 'PRIMARY'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

I ran the integrity check on the original system and it did seem to find and fix errors around this duplicate entry '10000' problem.  I re exported the backup, and tried re importing it but get the same error.  The integrity check comes back clean on the original server now.

Original server is 

  • v7.3.0#73011-sha1:3c73d0e

New server is most current version downloaded 11/13/17.


2 answers

0 votes
Lenard Lee Atlassian Team Nov 15, 2017

Hello Clint,

You could be hitting into the problem described here in this KB. Could you confirm by running the diagnosis, and then performing the suggested resolution.

As a precaution, I would recommend backing up your database prior to performing any update query on the database.


That article gave me some insight, but I was not able to get the queries right.


I went into the database Feature table and there was one entry with 10000, so I changed the ID to 99999 in the DB, then re-exported, and then I was able to get the import process to work on the new server. The instance seems to be working well so far.

Did you adjust the sequence table as well?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 26, 2019 in Jira Software

How to prevent the propagation of unused project schemes, workflows & screens in Jira software

Atlassian ranks project attributes as the third most important factor impacting performance in the category of data. It’s not surprising, since project attributes are precisely the rules used to ma...

568 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you