Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Products
  • Jira
  • Questions
  • org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:ChangeGroup][issue,41393][author,sidharath.roy@copart.com][created,2015-03-12 13:26:17.316][id,313157] (SQL Exception while executing the following:INSERT INTO changegroup (ID,

org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:ChangeGroup][issue,41393][author,sidharath.roy@copart.com][created,2015-03-12 13:26:17.316][id,313157] (SQL Exception while executing the following:INSERT INTO changegroup (ID,

Srinivas Surabhi March 12, 2015

While logging work on Tempo timesheet, we are getting this error.

 

org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:ChangeGroup][issue,41393][author,sidharath.roy@copart.com][created,2015-03-12 13:26:17.316][id,313157] (SQL Exception while executing the following:INSERT INTO changegroup (ID, issueid, AUTHOR, CREATED) VALUES (?, ?, ?, ?) (Duplicate entry '313157' for key 'PRIMARY'))

1 answer

0 votes
João Palharini
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 13, 2015

Hi Srinivas!

I did some research on this and suddenly remembered that I've already handled a case reported by a customer with the same set of errors output on the logs. smile

Could you please try running the queries below, as described on this knowledge document?

SELECT * FROM sequence_value_item WHERE seq_name = 'ChangeGroup';
--> If you are using PostgreSQL
SELECT max(id::integer) FROM changegroup;
 
--> If you are using MySQL
SELECT max(CAST(id AS SIGNED)) FROM changegroup;

If the output of the 2nd query is a bigger number than the one output on the 1st query, then you'll need to run an UPDATE on your database. See the query below:

warning Always backup your data and shutdown JIRA before performing any changes on the database.

UPDATE sequence_value_item SET seq_id = (SELECT max(id)+100 FROM changegroup) WHERE seq_name = 'ChangeGroup';

After running the query above, restart JIRA and try logging work on Tempo again. Let me know how this goes. wink

 

Cheers!

Joao

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events