-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint #411
Comments
Hey @lightjay 👋! Do you have a stream of Singer messages that can be used to reproduce this? Meaning both
This would make it easier and quicker for us to debug and patch. Thanks for reporting! |
Also, someone pointed out in Slack that this may be relevant: psycopg/psycopg2#1036. |
@edgarrmondragon yes running Minimal
Be aware that this table in postgres already has pretty much all the rows that are trying to be inserted. Though only trying to update one of those rows appears to produce the error. Here are some (perhaps) relevant logs:
As for the linked issue: you can see from the logs that it isn't trying to run a |
Just FYI I tried setting config:
parallelism: 1
parallelism_max: 1 But still received same error. EDIT: Sorry, this relates to pipelinewise variant |
I ran this locally and couldn't replicate the issue. Can you make sure you're on the latest target-postgres version with a Steps to try to replicate
Both succeeded |
I'm getting this error when running a pipeline from a custom tap build on the SDK (tap-pipedrive).
I've double checked the results of the tap and it doesn't seem to be sending duplicates. This error occurs on the first record of the stream. Does this target not overwrite pre-existing rows?
Supposedly this issue was already raised with #28 and fixed with #29 but if so, I'm not sure why I'm getting this ...
The text was updated successfully, but these errors were encountered: