Skip to content

Snowflake Snowflake Troubleshooting

When Test connection or an operation fails on a Snowflake datastore, the error message points to the layer that failed: the credentials or key pair, the role's privileges, or the warehouse.

Problems every connector shares

A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Snowflake.

Common Errors

Error Likely Cause Fix
Incorrect username or password The username or password is incorrect Verify the credentials and ensure the user exists with SHOW USERS in Snowflake
No active warehouse selected The user does not have a default warehouse or the warehouse specified in the connection form does not exist Verify the warehouse name and run ALTER USER <user> SET DEFAULT_WAREHOUSE = <warehouse>
Insufficient privileges to operate on schema The role lacks USAGE on the target schema Run GRANT USAGE ON SCHEMA <database>.<schema> TO ROLE <role>
Object does not exist or not authorized The role lacks SELECT on the target table or the table does not exist Run GRANT SELECT ON ALL TABLES IN SCHEMA <database>.<schema> TO ROLE <role>
Warehouse is suspended The warehouse is suspended and AUTO_RESUME is not enabled Resume the warehouse with ALTER WAREHOUSE <warehouse> RESUME or enable AUTO_RESUME
Private key provided is invalid The private key file is malformed or the passphrase is incorrect (Key-Pair auth) Verify the private key is an RSA key in PEM format (PKCS#8 or PKCS#1) and the passphrase
The private key is encrypted An encrypted private key was uploaded with Private Key Password left empty (Key-Pair auth) Enter the key's passphrase in Private Key Password, or upload an unencrypted key

Detailed Notes

Authentication Errors

The error Incorrect username or password or Private key provided is invalid indicates that the credentials are incorrect.

Common causes:

  • Incorrect password: the password does not match the one set for the user.
  • Account identifier wrong: the Snowflake host format must be <account>.<region>.snowflakecomputing.com. An incorrect account identifier will fail to connect.
  • Key-Pair format: the private key must be an RSA key in PEM format, either PKCS#8 (BEGIN PRIVATE KEY, or BEGIN ENCRYPTED PRIVATE KEY when encrypted) or PKCS#1 (BEGIN RSA PRIVATE KEY). DER files are not supported. A key referenced from a secrets manager must be stored unencrypted; see File fields.
  • Passphrase mismatch: an uploaded encrypted key (PKCS#8 or PKCS#1) needs its passphrase in Private Key Password. A wrong passphrase is rejected when you save the connection, with a message that the private key could not be decrypted with the provided password.
  • Missing passphrase: the form does not require Private Key Password, so it does not stop you from uploading an encrypted key and leaving the password empty. The connection check that runs when you test the connection or save the datastore then fails, and the datastore is not saved. The error details read The private key is encrypted (ENCRYPTED PRIVATE KEY header). Supply an unencrypted key: openssl pkcs8 -topk8 -nocrypt -in <key.pem>, or name the RSA PRIVATE KEY with Proc-Type: 4,ENCRYPTED header for an encrypted PKCS#1 key. Enter the passphrase in Private Key Password, or upload an unencrypted key.
  • Encrypted key from a secrets manager: a ${key} reference must point to an unencrypted key, with Private Key Password left empty. An encrypted key, or any value in Private Key Password next to a reference, is rejected when you test the connection or save it, with the message A private key referenced by a secret token must be stored unencrypted in the secrets manager, and the Private Key Password must be left empty.

Note

Snowflake is migrating service accounts to Key-Pair authentication. If using basic authentication with a TYPE=SERVICE user, consider migrating to Key-Pair before Snowflake deprecates basic auth for service users.

Permission Errors

The error Insufficient privileges or Object does not exist or not authorized means the role authenticated successfully but lacks the necessary grants.

Common causes:

  • Wrong role: the user's current role does not have the required privileges. Verify the role with SELECT CURRENT_ROLE().
  • Missing USAGE on warehouse: the role cannot execute queries without warehouse access.
  • Missing USAGE on database/schema: the role cannot browse objects in the database or schema.
  • Future grants not set: new tables created after the initial grant are not automatically accessible. Use GRANT SELECT ON FUTURE TABLES IN SCHEMA to fix this.

Connection Errors

The error No active warehouse selected or Warehouse is suspended indicates a compute resource issue.

Common causes:

  • Warehouse does not exist: the warehouse name in the connection form was misspelled or the warehouse was dropped.
  • Warehouse suspended: the warehouse is suspended and AUTO_RESUME = FALSE. Resume it manually or enable auto-resume.
  • No default warehouse: the user does not have a default warehouse assigned with ALTER USER ... SET DEFAULT_WAREHOUSE.

Whole Numbers Larger Than 64 Bits

Snowflake stores whole numbers as NUMBER(38,0), which can hold values beyond the 64-bit integer range that Qualytics reads whole-number columns into. When a table holds such a value, Qualytics reads that table again with its whole-number columns returned as decimals, so the profile or scan still completes instead of failing on the value. No action is needed on your side.

When this happens:

  • The table's result in the operation carries a warning saying its whole-number columns were read as decimals.
  • The columns keep the Integral type in their profile, so existing checks keep working.
  • Later profiles and scans of the same table start directly with decimal reads. After the platform restarts, the first read of the table fails once more before switching again.

To read every table of a datastore as decimals from the start, add "JDBC_TREAT_DECIMAL_AS_INT": "false" to the datastore's parameters through the API, next to role and warehouse. The connection form has no field for it. See API Payload Examples for the payload shape.