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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,238 views 10 18
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