Unable to Create Issue Due to Data Corruption

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Users are unable to create issues. Logs contain:

1 Caused by: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:Issue][created,2007-12-14 08:12:41.979][summary,test issue create ][workflowId,43401][timeoriginalestimate,null][type,1][timespent,null][environment,null][status,1][updated,2007-12-14 08:12:41.979][id,43401][timeestimate,null][key,MAINTENANCE-50][description,test issue create ][duedate,null][reporter,admin][project,10016][security,null][votes,0][assignee,gowso01.dimdim][priority,3] (SQL Exception while executing the following:INSERT INTO jiraissue (ID, pkey, PROJECT, REPORTER, ASSIGNEE, issuetype, SUMMARY, DESCRIPTION, ENVIRONMENT, PRIORITY, RESOLUTION, issuestatus, CREATED, UPDATED, DUEDATE, VOTES, TIMEORIGINALESTIMATE, TIMEESTIMATE, TIMESPENT, WORKFLOW_ID, SECURITY, FIXFOR, COMPONENT) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (Duplicate entry '43401' for key 1))

Cause

There is a workflow entry with this ID already included in the database.

To confirm this is the root cause, run the query below in the database and a row should be returned:

1 select ID from JIRAWORKFLOWS WHERE ID=ID_mentioned_on_logs

Resolution

This error can be resolved by running the Database Integrity Checker.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.