High severitysql compilation
Power BI Refresh Error:
001003 (42601)
What does this error mean?
Snowflake rejected the SQL statement because it contains a syntax error. The query cannot be parsed and will not execute. This is Snowflake error code 001003 with SQLSTATE 42601.
Common causes
- 1Missing or extra commas between column names or table references
- 2Unmatched parentheses in a subquery or function call
- 3A reserved keyword used as an identifier without quoting
- 4Incorrect use of single vs. double quotes (single for string literals, double for identifiers)
- 5A semicolon in the wrong position breaking a multi-statement script
How to fix it
- 1Read the full error message — Snowflake usually indicates the position in the query where parsing failed
- 2Check for unmatched parentheses by counting opening and closing brackets
- 3Verify commas between all column names in SELECT lists and function arguments
- 4If using a reserved word as an identifier, wrap it in double quotes: SELECT "date" FROM ...
- 5Use a SQL formatter to reformat the query and make structural issues visible