org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "requestlogging_pkey" Detail: Key (id, "timestamp")=(a7813f97-7c0d-4739-b20b-a2a6ab2f32a3, 1470137399294243) already exists.

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

Samebug tips

,
via stackoverflow.com by Unknown author

Upgrade the database driver to the latest and check.

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.3-1101-jdbc41</version>
</dependency>

Replace version with the latest driver version.

,
Expert tip

Try downgrading PostgresSQL server to 9.5 or update your PostgresSQL driver to 9.4-1211 with the following command: <postgresql.version>9.4.1211</postgresql.version>

Solutions on the web

via Stack Overflow by Nixxon
, 1 year ago
ERROR: duplicate key value violates unique constraint "requestlogging_pkey" Detail: Key (id, "timestamp")=(a7813f97-7c0d-4739-b20b-a2a6ab2f32a3, 1470137399294243) already exists.
via atlassian.com by Unknown author, 1 year ago
ERROR: update or delete on table "repository_changeset" violates foreign key constraint "fk34a3e6e3cbadfcbd" on table "relevant_changesets" Detail: Key (repository_changeset_id)=(6815755) is still referenced from table "relevant_changesets".
via Stack Overflow by membersound
, 2 years ago
ERROR: Insert or Update in table "my_entity" violates forgein key constraint "fk_id". Detail: Key (some_id)=(940) is not contained within table "my_object_table".
via Stack Overflow by Chitresh
, 2 years ago
ERROR: null value in column "customer_ui_id" violates not-null constraint
via Google Groups by Alan Orth, 4 months ago
ERROR: invalid input syntax for type timestamp: ""
via openbravo by kki19820206
, 1 year ago
ERROR: syntax error at or near ")"
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "requestlogging_pkey" Detail: Key (id, "timestamp")=(a7813f97-7c0d-4739-b20b-a2a6ab2f32a3, 1470137399294243) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)

Users with the same issue

37 times, 1 week ago
3 times, 1 month ago
Once, 2 months ago
Once, 2 months ago
32 times, 2 months ago

Write tip

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