org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "unique_document_id_rows_order" Detail: Key (document_id, rows_order)=(113306, 2) already exists. Error Code: 0

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 Stack Overflow by lucash
, 1 year ago
ERROR: duplicate key value violates unique constraint "unique_document_id_rows_order" Detail: Key (document_id, rows_order)=(113306, 2) already exists. Error Code: 0
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "unique_document_id_rows_order" Detail: Key (document_id, rows_order)=(113306, 2) already exists. Error Code: 0
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)
at com.dbcentral.service.DocumentService.addRow(DocumentService.java:100)

Users with the same issue

You are the first who have seen this exception.

Write tip

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