org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.pages.attachments.ImageDetailsDto#125307008]; SQL []; Violation of PRIMARY KEY constraint 'PK__IMAGEDET__23CEF7B0117F9D94'. Cannot insert duplicate key in object 'dbo.IMAGEDETAILS'. The duplicate key value is (125307008).; nested exception is java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__IMAGEDET__23CEF7B0117F9D94'. Cannot insert duplicate key in object 'dbo.IMAGEDETAILS'. The duplicate key value is (125307008).

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Pavel Dreger, 1 year ago
Hibernate operation: could not insert: [com.atlassian.confluence.pages.Page#721295]; SQL []; Duplicate entry '721295' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '721295' for key 'PRIMARY'
via Atlassian JIRA by Vladimir, 1 year ago
Hibernate operation: could not insert: com.atlassian.confluence.core.BodyContent#10322018; SQL []; integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT; nested exception is java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; SYS_PK_10126 table: BODYCONTENT
via Atlassian JIRA by Adalberto Schneider [Atlassian], 1 year ago
Hibernate operation: could not delete: [com.atlassian.confluence.pages.Attachment#5799948]; SQL []; ERROR: update or delete on table "content" violates foreign key constraint "fka768048734a4917e" on table "imagedetails" Detail: Key (contentid
via Atlassian JIRA by Adalberto Schneider, 1 year ago
Hibernate operation: could not delete: [com.atlassian.confluence.pages.Attachment#5799948]; SQL []; ERROR: update or delete on table "content" violates foreign key constraint "fka768048734a4917e" on table "imagedetails" Detail: Key (contentid
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.pages.attachments.ImageDetailsDto#125307008]; SQL []; Violation of PRIMARY KEY constraint 'PK__IMAGEDET__23CEF7B0117F9D94'. Cannot insert duplicate key in object 'dbo.IMAGEDETAILS'. The duplicate key value is (125307008).; nested exception is java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__IMAGEDET__23CEF7B0117F9D94'. Cannot insert duplicate key in object 'dbo.IMAGEDETAILS'. The duplicate key value is (125307008).

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.