© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
6 replies
loup

duplicate key value violates unique constraint Key (id)=(5)

Okay Im becoming crazy ahah, in multiple table, when I delete some row and after reupload data, im getting this error :
 duplicate key value violates unique constraint "tmdb_collection_translations_pkey"
DETAIL:  Key (id)=(5) already exists.
 duplicate key value violates unique constraint "tmdb_collection_translations_pkey"
DETAIL:  Key (id)=(5) already exists.


That doesnt make sense because the id should automatically set...

Im using Supabase self hosted btw
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

duplicate key value violates unique constraint "profiles_pkey"
SupabaseSSupabase / help-and-questions
3y ago
duplicate key value violates unique constrain
SupabaseSSupabase / help-and-questions
13mo ago
supabase.auth.api.createUser duplicate key value violates unique constraint users_pkey
SupabaseSSupabase / help-and-questions
4y ago
violates foreign key constraint
SupabaseSSupabase / help-and-questions
4y ago