You're right to highlight that you're using the Power BI native connector for Databricks! This is an important distinction from manually configuring an ODBC DSN.
Even though you're using the native connector, the error message "ODBC: ERROR [HY000] [Microsoft][ThriftExtension] (14) Unexpected response from server during a HTTP connection: SSL_connect: certificate verify failed." still points to the exact same fundamental problem: your Power BI Desktop client does not trust the SSL certificate presented by the Databricks SQL Warehouse.
The "ODBC" part in the error message is likely due to the native connector internally leveraging some ODBC-like or Thrift-based components for its communication with Databricks, which then surface this type of error. The core issue remains SSL trust.
Here's a breakdown of the most likely causes and solutions, specifically tailored for the native connector context:
Understanding the "Certificate Verify Failed" Error
This error means:
- Power BI Desktop initiates a secure (HTTPS) connection to your Databricks SQL Warehouse.
- The Databricks server presents its SSL certificate.
- Your Power BI Desktop (running on your Windows machine) tries to validate this certificate against its local trust store (the Windows certificate store).
- The validation fails, because the certificate either:
- Is not signed by a Certificate Authority (CA) that your machine trusts.
- Has been intercepted and re-signed by an intermediate party (like a corporate proxy) whose CA your machine doesn't trust.
- Is expired or has a hostname mismatch (less likely with Databricks).
Solutions & Troubleshooting Steps (for Power BI Native Connector)
The solutions largely revolve around ensuring your Windows machine trusts the certificate chain.
1. Corporate SSL Inspection / Proxy (MOST LIKELY CAUSE)
This is the overwhelming leader for "certificate verify failed" errors in corporate environments. Your company's network security appliance (firewall, proxy, DLP solution) is performing SSL inspection: it intercepts your connection to Databricks, decrypts it, inspects it, and then re-encrypts it with a certificate signed by your company's own internal Certificate Authority (CA). Your Windows machine doesn't trust this internal CA by default.
Action: You need to get your company's Root CA certificate and install it into your Windows machine's "Trusted Root Certification Authorities" store.
-
Contact Your IT Department/Help Desk: This is the easiest and most recommended way. Explain the error and that you need the corporate root CA certificate to trust internal SSL inspection. They should be able to provide you with the .cer, .crt, or .pem file and guide you through the installation.
-
If you obtain the file (e.g., corp_root_ca.cer):
- Type
certmgr.msc in the Windows search bar and press Enter to open the Certificate Manager.
- In the left pane, navigate to
Trusted Root Certification Authorities -> Certificates.
- Right-click on
Certificates, go to All Tasks -> Import....
- Follow the Certificate Import Wizard:
- Click
Next.
Browse to the location of your corporate root CA certificate file.
- Ensure the
Certificate store is set to Trusted Root Certification Authorities.
- Click
Next and then Finish.
- You should see a confirmation that the import was successful.
- Restart Power BI Desktop completely after installing the certificate. You might even need to restart your computer.
-
How to confirm if this is the issue (diagnostic):
- If you have a laptop, try connecting Power BI Desktop to Databricks while on a different network (e.g., home Wi-Fi, public hotspot – use caution and only if company policy allows). If it works outside your corporate network, it's almost certainly a corporate proxy/SSL inspection issue.
2. Outdated Power BI Desktop Version
Power BI Desktop is frequently updated. Newer versions often include updated internal components, bug fixes, and support for the latest TLS protocols, which can resolve certificate issues.
Action: Ensure your Power BI Desktop is fully up to date.
- Open Power BI Desktop.
- Go to
File -> About -> Check the version.
- Download the latest version from the official Microsoft Power BI website. Install it, which will typically update your existing installation.
- Restart Power BI Desktop after the update.
3. System Time Synchronization
A significant clock skew between your client machine and the Databricks server can cause SSL certificate validation to fail, as certificates have validity periods.
Action: Ensure your computer's system clock is accurate.
- Right-click the clock in your Windows taskbar ->
Adjust date/time.
- Ensure "Set time automatically" and "Set time zone automatically" are on.
- Click
Sync now under "Synchronize your clock".
- Restart Power BI Desktop.
4. Local Firewall / Antivirus Interference
Occasionally, overzealous local security software (Windows Defender Firewall, third-party antivirus, or endpoint detection and response - EDR) can interfere with secure connections, even if they aren't performing full SSL inspection.
Action: Temporarily disable your local firewall and any third-party antivirus software (use extreme caution and only if you understand the risks; re-enable immediately after testing).
- If the connection works after disabling, you'll need to configure an exception for Power BI Desktop in your security software.
5. Double-Check Databricks Connection Details (Even If You're Sure)
While you mentioned they are correct, a quick, meticulous double-check can sometimes uncover subtle issues.
- Server Hostname:
- Make sure there are no typos, extra spaces, or incorrect characters.
- Example:
adb-xxxxxxxx.x.azuredatabricks.net or xxxxxxxx.cloud.databricks.com
- HTTP Path:
- Ensure it's exactly as provided (e.g.,
/sql/1.0/warehouses/xxxxxxxxxxxxxxxx).
- Personal Access Token (PAT):
- Is it valid and has the necessary permissions (
Can Use on the SQL Warehouse)?
- Has it expired?
- Try generating a brand new PAT in Databricks and using that. This is a quick way to rule out PAT issues.
6. Test Network Reachability (Basic)
While the error specifically points to SSL, ensuring basic network reachability is good.
- Can you
ping the Databricks server hostname from your command prompt? (e.g., ping adb-xxxxxxxx.x.azuredatabricks.net) - This checks basic DNS resolution and network path.
- Can you access the Databricks UI and the SQL Warehouse from a web browser on the same machine? This verifies broader network access and initial SSL handshakes for a browser.
Prioritized Recommendation:
Start with Step 1 (Corporate SSL Inspection). This is the most prevalent cause of SSL_connect: certificate verify failed in enterprise settings. If you're working within a company network, this is almost certainly your issue. Get in touch with your IT support; they will be familiar with this problem and can provide the necessary certificate.