org.springframework.dao.DataIntegrityViolationException

Hibernate operation: could not insert: [com.atlassian.confluence.spaces.Space#819201]; SQL []; Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_CT_740 in statement [insert into SPACES (SPACENAME, SPACEKEY, SPACEDESCID, HOMEPAGE, CREATOR, CREATIONDATE, LASTMODIFIER, LASTMODDATE, SPACETYPE, SPACEGROUPID, SPACEID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_CT_740 in statement [insert into SPACES (SPACENAME, SPACEKEY, SPACEDESCID, HOMEPAGE, CREATOR, CREATIONDATE, LASTMODIFIER, LASTMODDATE, SPACETYPE, SPACEGROUPID, SPACEID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web28

  • via Unknown by Marlena Compton [Atlassian],
  • via Unknown by Marlena Compton [Atlassian],
  • via Unknown by Unknown author,
  • Stack trace

    • org.springframework.dao.DataIntegrityViolationException: Hibernate operation: could not insert: [com.atlassian.confluence.spaces.Space#819201]; SQL []; Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_CT_740 in statement [insert into SPACES (SPACENAME, SPACEKEY, SPACEDESCID, HOMEPAGE, CREATOR, CREATIONDATE, LASTMODIFIER, LASTMODDATE, SPACETYPE, SPACEGROUPID, SPACEID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; nested exception is java.sql.SQLException: Violation of unique constraint $$: duplicate value(s) for column(s) $$: SYS_CT_740 in statement [insert into SPACES (SPACENAME, SPACEKEY, SPACEDESCID, HOMEPAGE, CREATOR, CREATIONDATE, LASTMODIFIER, LASTMODDATE, SPACETYPE, SPACEGROUPID, SPACEID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:110)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.