Forum Discussion
Power BI Azure Cosmos DB v2 Connector – Connection Error
- 1 year ago
Hi risfy2025
This type of error (a "Cannot connect" message with an empty details field) has been reported by others and may be related to a few common causes specific to the v2 Azure Cosmos DB connector in Power BI:
Possible Causes:
-
Missing or outdated .NET Framework components – the v2 connector may rely on specific runtime components that are not present on your machine, even if they exist on others.
-
Proxy or firewall settings – check if this PC is behind a proxy or has firewall rules that block specific outbound calls. The v2 connector uses different endpoints or protocols than v1.
-
Power BI Desktop version – you mentioned 2.144.XXX, which should be March 2024. Try upgrading to the latest version or testing with a slightly earlier build (some builds introduced silent breaking changes).
-
Credential cache corruption – try deleting the cached credentials from:
File > Options and settings > Data source settings > Clear Permissions
and restart Power BI. -
Authentication method mismatch – the v2 connector may be trying to use a different authentication protocol (e.g., Managed Identity or OAuth2) which isn't supported on your local environment due to configuration issues.
Logs and Troubleshooting Steps:
-
Check Power BI logs located at:
C:\Users\<YourUsername>\AppData\Local\Microsoft\Power BI Desktop\Traces
Open the latest.txtfile and search forCosmosDB,v2, or any timestamp around your last connection attempt. -
Enable tracing (from Options > Diagnostics) and reproduce the error – this gives more verbose logs.
Additional Suggestions:
-
Try to connect via the v2 connector on a different user profile on the same PC to rule out profile-level issues.
-
If it works on other PCs but not this one, use Fiddler or Wireshark to compare network traffic between the working and failing machine (look for blocked ports or DNS issues).
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
-
Hi risfy2025
This type of error (a "Cannot connect" message with an empty details field) has been reported by others and may be related to a few common causes specific to the v2 Azure Cosmos DB connector in Power BI:
Possible Causes:
-
Missing or outdated .NET Framework components – the v2 connector may rely on specific runtime components that are not present on your machine, even if they exist on others.
-
Proxy or firewall settings – check if this PC is behind a proxy or has firewall rules that block specific outbound calls. The v2 connector uses different endpoints or protocols than v1.
-
Power BI Desktop version – you mentioned 2.144.XXX, which should be March 2024. Try upgrading to the latest version or testing with a slightly earlier build (some builds introduced silent breaking changes).
-
Credential cache corruption – try deleting the cached credentials from:
File > Options and settings > Data source settings > Clear Permissions
and restart Power BI. -
Authentication method mismatch – the v2 connector may be trying to use a different authentication protocol (e.g., Managed Identity or OAuth2) which isn't supported on your local environment due to configuration issues.
Logs and Troubleshooting Steps:
-
Check Power BI logs located at:
C:\Users\<YourUsername>\AppData\Local\Microsoft\Power BI Desktop\Traces
Open the latest.txtfile and search forCosmosDB,v2, or any timestamp around your last connection attempt. -
Enable tracing (from Options > Diagnostics) and reproduce the error – this gives more verbose logs.
Additional Suggestions:
-
Try to connect via the v2 connector on a different user profile on the same PC to rule out profile-level issues.
-
If it works on other PCs but not this one, use Fiddler or Wireshark to compare network traffic between the working and failing machine (look for blocked ports or DNS issues).
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi Ritaf1983,
Thank you very much for your detailed and thoughtful response. I’ve gone through most of the suggested checks and would like to share my current findings:
- The .NET Framework components are consistent across machines, including the one experiencing the issue.
- I tested with identical proxy settings and network environment, but the issue still persists.
- I’ve updated Power BI Desktop to the latest version (2.144.878.0), but the error remains unchanged.
- I cleared the cached credentials using the Data Source Settings menu and restarted Power BI, but no improvement.
- Regarding authentication: while I’m not entirely sure about protocol mismatches, I checked the Azure Cosmos DB activity logs, and they show successful authentication and queue access even when Power BI reports a connection error.
I haven’t yet tested with a different user profile or reviewed the logs in the Traces folder, but I plan to try those next.
Thanks again for your support and for sharing such a comprehensive set of troubleshooting steps. I’ll follow up once I’ve completed the remaining checks.
Best regards,
risfy2025