# How do I find the earliest cause of a Snowflake connection failure?

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Data Loading, Unloading, and Connectivity
Updated: 2026-11-25T08:00:24.542881+00:00
HTML: https://learningpathx.com/faq/COF-C03/cofc03-diagnose-snowflake-connection-failures.html

## Also asked as

- How can I distinguish endpoint, DNS, TLS, login, and session errors in a Snowflake client?
- What should I check first when my Snowflake driver cannot connect?

Start with the exact client error and the earliest step that failed. A connection needs the correct account endpoint, DNS and route, trusted TLS, a permitted network origin, and successful authentication. Once the session exists, its active role, warehouse, database, schema, and grants determine which SQL works.

1. Verify the account identifier in the form the driver expects. The preferred organization and account form is commonly `orgname-account_name` for drivers. The host is a separate setting where required, and legacy locators can require region or cloud qualifiers. Check the intended public or private host from the actual failing runtime.
2. Test DNS, route, proxy, firewall and TLS trust from that runtime. Compare the observed source address or private endpoint with the applicable network policy. From Snowflake CLI, run `snow connection test -c <connection_name>` to test a named connection. Use the diagnostic options documented for the CLI version when you need network detail. A passing test in one client does not establish that another driver's settings or identity are correct.
3. If the request reaches login, check client version, authenticator, identity provider or OAuth integration, token expiry or key registration, clock skew, and MFA or authentication policy. Preserve the timestamp, native error and available request ID. Use permitted login history to correlate evidence.
4. If sign-in worked and SQL fails, inspect the session context and exact object privilege. Retry the original operation under the intended role after correcting the dependency, then verify the expected query or file access.

[Account identifiers](https://docs.snowflake.com/en/user-guide/admin-account-identifier) · [Client connectivity troubleshooting](https://docs.snowflake.com/en/user-guide/client-connectivity-troubleshooting/overview) · [Snowflake CLI connection test](https://docs.snowflake.com/en/developer-guide/snowflake-cli/connecting/configure-connections) · [LOGIN\_HISTORY](https://docs.snowflake.com/en/sql-reference/functions/login_history)

Source: [Snowflake Connectivity: Drivers, Connectors, Network Policies, and Authentication](https://learningpathx.com/news/snowflake-connectivity-drivers-connectors-network-policies-and-authentication.html)
