Short answer
PostgREST, the API in front of your Supabase database, does not know a table with that name in the schema it searched. In apps built with Lovable, Bolt or Cursor the cause is usually one of four things: the migration never ran on this project, the name differs (typo, plural, upper case), the table lives in another schema, or the API’s schema cache is out of date. Check where the table really is, create it with RLS in a new migration, and reload the cache with notify pgrst. Do not expose private schemas to make the error go away.
Ask an AI about this page:ChatGPTClaude
On this page
Your app called supabase.from("notes"), and PostgREST, the API that turns that call into SQL, has no table called notes in the schema it searched. It answers with HTTP 404 and code PGRST205. Sometimes a hint follows, such as Perhaps you meant the table 'public.note'. Nothing is wrong with your data. The API and your code disagree about where the table is or what it is called.
Find your cause in 30 seconds
| What you see | Most likely cause |
|---|---|
| The table is not in the table editor at all | The table is not in this project |
A hint Perhaps you meant the table ..., or upper case in the name | The name is different |
The table is listed under a schema other than public | The table is in another schema |
| The table is new and everything else matches | The schema cache is out of date |
Start with one query in the SQL Editor of the project your app uses. It runs as the owner and lists every table whose name looks like yours, in every schema:
select table_schema, table_name
from information_schema.tables
where table_name ilike '%note%';The four causes
1. The table is not in this project
Your AI builder wrote a migration file, but it never ran on the database your app talks to. Or it ran in another Supabase project, for example a second one for testing. Compare the project URL in your app’s environment variables with the project you have open in the dashboard. If the query above returns nothing, the table does not exist here.
2. The name is different
PostgREST matches names exactly. note is not notes, and a table created as "Notes" (with quotes and an upper-case N) is not notes. We checked the case rule on Postgres: with a table created as public."Notes", a query for public.notes fails, and only public."Notes" works. Use the exact name the query above prints, or rename the table to lower case in a new migration.
3. The table is in another schema
supabase-js looks in public unless you say otherwise. A table in private, app or auth is not found there. Supabase’s own troubleshooting guide adds a twist: when several schemas are exposed, names without a schema are looked up only in the first one. If the table belongs to the API, select the schema per query with .schema("app") after exposing it under Integrations → Data API. If it is private on purpose, leave it where it is.
4. The schema cache is out of date
PostgREST keeps a list of tables, columns and functions in memory, its schema cache. Normally it reloads after every migration. When it misses one, a new table stays invisible until the next reload. You can trigger one yourself.
How to fix it
If the table is missing (cause 1), create it in a new migration, the same way for every table your app reads. Since 2026, new tables in public are not reachable through the Data API until you grant access, so the grant is part of the fix, together with RLS:
create table public.notes (
id uuid primary key default gen_random_uuid(),
user_id uuid not null default auth.uid() references auth.users (id) on delete cascade,
body text not null,
created_at timestamptz not null default now()
);
alter table public.notes enable row level security;
grant select, insert, update, delete on public.notes to authenticated;
create policy "Users manage their notes"
on public.notes for all
to authenticated
using ((select auth.uid()) = user_id)
with check ((select auth.uid()) = user_id);
notify pgrst, 'reload schema';If the table exists and the name or schema differs (causes 2 and 3), change the code, not the database. If everything matches (cause 4), run only the last line in the SQL Editor:
notify pgrst, 'reload schema';Supabase’s troubleshooting guide shows this exact statement. It changes no data and finishes with Success. No rows returned.
My Supabase app fails with “Could not find the table ‘public.your_table’ in the schema cache” (PGRST205). First find out where the table really is: list the migrations that create it, and give me a SQL query I can run in the SQL Editor to list matching tables in all schemas. Then tell me which of these it is: the migration never ran on this project, the name differs (case, plural, typo), the table is in another schema, or the schema cache is stale. Fix only that cause. If the table is missing, create it in a new migration with RLS enabled, a grant only to the roles that need it, owner policies using (select auth.uid()), and notify pgrst, ‘reload schema’ at the end.
Do not expose private schemas, do not grant anything to anon unless the data is public, do not disable RLS and do not edit existing migrations. Show me the change before applying it.
Check that the fix works
Reload the page in your app. The error should be gone. If the app now shows permission denied for table notes instead, the table exists but the role has no grant: read permission denied for table. Then check that the new table is not open to everyone, as a signed-in user and as a visitor:
begin;
set local role authenticated;
set local request.jwt.claims = '{"sub": "11111111-1111-1111-1111-111111111111", "role": "authenticated"}';
insert into public.notes (body) values ('Hello') returning user_id;
select count(*) from public.notes;
rollback;The insert returns the user’s id and the count is that user’s notes only. Run the select with set local role anon; and no claims: it must fail with permission denied for table notes. The guide to Supabase roles and permissions explains why anon should not have a grant here, and the guide to testing RLS policies has the rest of the checks.
Frequently asked questions
The table is in the table editor. Why can’t the API find it?
Check three things: the project, the schema and the exact name. The table editor may show another project than the one in your app’s Supabase URL, the table may be in a schema other than public, or its name may differ in case or spelling. If all three match, reload the schema cache with notify pgrst, ‘reload schema’.
What does the hint “Perhaps you meant the table” mean?
PostgREST found a table with a similar name in the same schema and suggests it. It usually points at a typo or a plural versus singular mix-up, for example note instead of notes. Fix the name in your code, not the table.
Older projects show relation “public.notes” does not exist instead. Is that the same?
Yes, same cause. PostgREST 12 and earlier passed the query to Postgres, which answered with error 42P01. Newer PostgREST checks its schema cache first and answers with PGRST205 and HTTP 404.
Should I expose my private schema so the API finds the table?
Only if every table in it is meant for the API. Exposing a schema makes all its tables reachable with your public anon key, limited only by grants and RLS. Tables kept out of the API on purpose should stay there and be read from server code.
Sources
- 1.PostgREST Error Codes — Supabase Docs
- 2.Errors — PostgREST Documentation
- 3.Schema Cache — PostgREST Documentation
- 4.Reload/refresh postgrest schema — Supabase Docs
- 5.PostgREST not recognizing the objects in a schema even after adding it to the exposed schemas — Supabase Docs
- 6.Breaking change: tables not exposed to Data and GraphQL API automatically — Supabase Changelog