Skip to content
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

Error: Duplicate key (subst_id) in ego_grid_mv_griddistrict in ego_dp_mv_griddistrict.sql #360

Open
OriolRaventos opened this issue Apr 14, 2020 · 0 comments

Comments

@OriolRaventos
Copy link

When executing ego_dp_mv_griddistrict.sql I get the following error:

sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ego_grid_mv_griddistrict_pkey"
DETAIL: Key (subst_id)=(155) already exists.

but looking at the code and the input / temporary tables I am not able to find where the duplication comes from (many of the temporary table also have a primary key, hence there could not be a duplicated key in them either).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant