java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__os_group__690797E6'. Cannot insert duplicate key in object 'os_group'.

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 Rashit A. Fakhreyev, 1 year ago
Violation of PRIMARY KEY constraint 'PK__os_group__690797E6'. Cannot insert duplicate key in object 'os_group'.
via Atlassian JIRA by Rashit A. Fakhreyev, 1 year ago
Violation of PRIMARY KEY constraint 'PK__os_group__690797E6'. Cannot insert duplicate key in object 'os_group'.
via atlassian.com by Unknown author, 1 year ago
Violation of PRIMARY KEY constraint 'PK_ _690797E6'. Cannot insert duplicate key in object 'os_group'.
via jtds by *anonymous
, 1 year ago
Invalid object name \#tempTable'.
via Google Groups by Rizwan, 5 months ago
Cannot insert the value NULL into column 'bar', table 'CCTEST.dbo.joetab le'; column does not allow nulls. INSERT fails.
java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__os_group__690797E6'. Cannot insert duplicate key in object 'os_group'.
at net.sourceforge.jtds.jdbc.SqlMessage.toSQLException(SqlMessage.java:392)
at net.sourceforge.jtds.jdbc.SQLWarningChain.addOrReturn(SQLWarningChain.java:91)
at net.sourceforge.jtds.jdbc.Tds.goToNextResult(Tds.java:750)
at net.sourceforge.jtds.jdbc.TdsStatement.getMoreResults(TdsStatement.java:710)
at net.sourceforge.jtds.jdbc.TdsStatement.executeCallImpl(TdsStatement.java:302)
at net.sourceforge.jtds.jdbc.TdsStatement.internalExecuteCall(TdsStatement.java:282)
at net.sourceforge.jtds.jdbc.PreparedStatement_base.execute(PreparedStatement_base.java:136)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:462)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:436)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:37)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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