Environment: JIRA 5.2, SQL Server 2008 database, evaluation copy of JIRA
We have a test instance of JIRA. Several weeks ago I created a test project and issue. When I went in recently to edit the issue I got an error regarding a key conflict on "ID" column. I created 2 new projects and tried to create new issues for them, but got a similar error:
Exception while executing the following:INSERT INTO dbo.jiraissue (ID, pkey, PROJECT, REPORTER, ASSIGNEE, issuetype, SUMMARY, DESCRIPTION, ENVIRONMENT, PRIORITY, RESOLUTION, issuestatus, CREATED, UPDATED, DUEDATE, RESOLUTIONDATE, VOTES, WATCHES, TIMEORIGINALESTIMATE, TIMEESTIMATE, TIMESPENT, WORKFLOW_ID, SECURITY, FIXFOR, COMPONENT) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The INSERT statement conflicted with the FOREIGN KEY constraint "FK_jiraissue_fileattachment". The conflict occurred in database "JiraTest", table "dbo.fileattachment", column 'ID'.))
I deleted the original issue and tried to create a new one, in any of the 3 projects, but still received the same error.
So does anyone in JIRA support have any idea why I might be getting this foreign key violation? We are dead in the water with our test until this gets resolved.
Not sure whether this will help but try the database integrity checker (https://confluence.atlassian.com/display/JIRA/Using+the+Database+Integrity+Checker).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.