question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: 23505: duplicate key value violates unique constraint

See original GitHub issue

Hi

I’m not sure if this is a bug or a configuration issue. Every time I deploy a change, eventually I get the following error:

{"errorMessage":"Workflow faulted at 2021-07-30T05:56:34Z with error: 23505: duplicate key value violates unique constraint \"WorkflowExecutionLog_Document_pkey\"","workflow":{"name":null,"version":2,"instanceId":"60aff5f287fd4cda8f49efb603d21dd6"}}

For reference: I’m using YesSql and Postgres

Thanks

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mauordonezcommented, Sep 17, 2021

@sfmskywalker thanks a lot. I will be updating them today. I’ll confirm ASAP. @JoschaMetze thanks.

Separate question, are you moving away from nuget.org to myget?

1reaction
JoschaMetzecommented, Sep 17, 2021

@sfmskywalker fix works wonderful by the way, thanks for the quick fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error 23505 duplicate key value violates unique constraint ...
If you have a sequencer on the field (like with a serial column type), it is likely out of sync with the table...
Read more >
PostgreSQL Error code 23505 - How to fix
This happens when the primary key sequence in the table we're working on becomes out of sync. And this might likely be because...
Read more >
Fixing table structure to avoid `Error: duplicate key value ...
At a later point some records are inserted without id and they fail with the error: Error: duplicate key value violates unique constraint...
Read more >
SQLSTATE 23505 returned when a unique value ...
IBM Content Collector: SQLSTATE 23505 returned when a unique value constraint is violated in Content Manager repository ... Problem. When running ...
Read more >
error 23505 duplicate key value violates unique constraint ...
That likely means that the primary key sequence in the table you're working with has somehow become out of sync, likely because of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found