Skip to content

PostgresException: 23505: duplicate key value violates unique constraint "PK_Core_User" #764

@thanhtdvn

Description

@thanhtdvn

After running the app with data seeding on PostgreSQL , when you register a new account on system, you will got an error related to "duplicate key value violates unique constraint PK_{Core_User}".

And this error is also occurs when you add a new entry of the entity that did seed data, ex: Address.

It seems a issue on Npgsql.EntityFrameworkCore.PostgreSQL like npgsql/efcore.pg#367

Considering workaround on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions