© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
Supabase
•
4y ago
•
6 replies
felixthehat
RLS Insert working but Upsert throws a 'new row violates row-level security policy 42501' error
Hi folks
, I can
't work out the RLS rule to allow upserts
, when insert is working fine
, is there a rule I should be adding for upserting
? thanks
!
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
upsert() new row violates row-level security policy
S
Supabase / help-and-questions
4y ago
42501 - "New row violates row-level security for table"
S
Supabase / help-and-questions
3y ago
StorageApiError: new row violates row-level security policy
S
Supabase / help-and-questions
4mo ago
RLS policy set but message: "new row violates row-level security policy for table xxxxxx"
S
Supabase / help-and-questions
14mo ago