← All errors · SupabaseSupabase database & RLS errors

Could not find the column in the schema cache

Exact error

Could not find the 'avatar_url' column of 'profiles' in the schema cache

What it means

This often happens right after a migration or an AI tool (Lovable, Bolt, Cursor, v0) adds a column and the app queries it before PostgREST reloads its schema cache. The PostgREST API layer doesn't know about this column, either because it doesn't exist or the API's schema cache is stale. Error code PGRST204. This is not PGRST002 ("Could not query the database for the schema cache"), which is a different official error.

See also: official Supabase guide: Reload/refresh PostgREST schema.

Likely causes

How to fix it

  1. Confirm the column exists in Table Editor with exactly that name.

  2. Reload the PostgREST schema cache from the SQL editor (this is the official Supabase reload command):

    notify pgrst, 'reload schema';
  3. If Lovable, Bolt, or Cursor just added the column, paste this:

    The API returns: Could not find the 'avatar_url' column of 'profiles' in the schema cache (PGRST204). Confirm that column exists with exactly that name. If it was just added, reload the PostgREST schema cache by running this in the Supabase SQL editor: notify pgrst, 'reload schema';

Still stuck after trying this? Get it fixed for $49, or you don't pay.

Prevent this next time

FAQ

What does "Could not find the column in the schema cache" mean?

This often happens right after a migration or an AI tool (Lovable, Bolt, Cursor, v0) adds a column and the app queries it before PostgREST reloads its schema cache. The PostgREST API layer doesn't know about this column, either because it doesn't exist or the API's schema cache is stale. Error code PGRST204. This is not PGRST002 ("Could not query the database for the schema cache"), which is a different official error.

What usually causes it?

Column name typo in your insert/update. Column added recently and the schema cache hasn't reloaded.

How do I fix it?

1. Confirm the column exists in Table Editor with exactly that name. 2. Reload the PostgREST schema cache from the SQL editor (this is the official Supabase reload command): 3. If Lovable, Bolt, or Cursor just added the column, paste this:

Last checked against official docs on . Sources: Official Supabase Knowledge Base: Reload/refresh PostgREST schema.

Related errors

More Supabase errors and fixes →

Tools that help

  • Railway: Deploy backends and databases; new users get $20 credit.

Some links on this page are affiliate links: if you sign up or buy through them, FixStack may earn a commission at no extra cost to you. Learn more.

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy