issue after jira database update

We are making enhancements to an existing JIRA application. As part of the enhancements, we are adding a new field to an issue type. For all the existing issues of this issue type, we set the default value through SQL by inserting value in JIRA database table directly. We shutdown JIRA before executing the SQL and once SQL is executed we bring the JIRA server up and do reindex.

But when we access the JIRA system we get one time error depending on what action we do.

  • Cannot insert NULL into ("ETO_JIRA", "OS_CURRENTSTEP"."ID")
  • 2015-04-23 00:21:52,490 http-bio-8080-exec-23 ERROR dravimat 21x8526x1 1mgn5q7 10.200.80.10,10.200.80.25 /secure/QuickCreateIssue.jspa [onresolve.jira.groovy.GroovyRunner] The script failed : javax.script.ScriptException: javax.script.ScriptException: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:IssueLink][id,30078][source,32811][sequence,0][linktype,10003][destination,32808] (SQL Exception while executing the following:INSERT INTO issuelink (ID, LINKTYPE, SOURCE, DESTINATION, SEQUENCE) VALUES (?, ?, ?, ?, ?) (ORA-00001: unique constraint (ETO_JIRA.PK_ISSUELINK) violated

But once this error (any one) occurs, after that the error won't come again. The system works fine.

How to avoid the error happening first time? How it is automatically getting cleared from next time?

 

Regards,

Ramakrishnan

1 answer

This widget could not be displayed.

Hello Ramakrishnan,

Looking at the table being affected, it seems like its something related with Issue Links. Can you check if you link one issue to another if the same error occurs in your logs?

Also, that behaviour seems like the one described here: https://confluence.atlassian.com/display/JIRAKB/Duplicated+Entry+-+Unique+Constraint+Violated

Maybe the queries there help you to identify the root problem?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
Join discussion

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