| name | snowflake-common-errors |
| description | Diagnose and fix common Snowflake errors and SQL compilation failures.
Use when encountering Snowflake error codes, failed queries,
authentication issues, or warehouse/connection problems.
Trigger with phrases like "snowflake error", "fix snowflake",
"snowflake not working", "snowflake SQL error", "snowflake 002003".
|
| allowed-tools | Read, Grep, Bash(curl:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","data-warehouse","analytics","snowflake"] |
| compatibility | Designed for Claude Code |
Snowflake Common Errors
Overview
Quick reference for the most common Snowflake error codes, SQL compilation errors, and driver issues with real solutions.
Error Reference
002003 (42S02): Object Does Not Exist
SQL compilation error: Object 'MY_DB.MY_SCHEMA.USERS' does not exist or not authorized.
Causes: Table doesn't exist, wrong database/schema context, or role lacks privileges.
Solutions:
SELECT CURRENT_DATABASE(), CURRENT_SCHEMA(), CURRENT_ROLE();
SHOW TABLES LIKE 'USERS' IN SCHEMA MY_DB.MY_SCHEMA;
GRANT SELECT ON TABLE MY_DB.MY_SCHEMA.USERS TO ROLE MY_ROLE;
SELECT * FROM MY_DB.MY_SCHEMA.USERS;
000606: No Active Warehouse
SQL execution error: No active warehouse selected in the current session.
Solutions:
USE WAREHOUSE COMPUTE_WH;
SHOW WAREHOUSES LIKE 'COMPUTE_WH';
390100: Incorrect Username or Password
Incorrect username or password was specified.
Solutions:
snowsql -a -u