You are currently viewing We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly
We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly

We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly


In this article, we are going to fix this issue “We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly” that we recently faced after updating the Power BI Report Server to the latest version May 2025.

We couldnt connect to the Analysis Services server. Make sure youve entered the connection string correctly | Power Platform Geeks

Solving: We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly

Scenario

When we recently upgraded Power BI Report Server to the latest May 2025 version, we ran into a critical issue. After the upgrade, reports that were connected to SQL Server stopped working and started showing this error:

We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly.

This article explains the root cause and solution that helped us fix the problem.

Root cause

The real reason is that starting from the May 2024 version, Power BI Report Server no longer supports non-encrypted connections to SQL Server.

What does it mean?

  • Starting with recent PBIRS updates (like May 2024), Microsoft tightened security for certain connections, especially when trusted/untrusted servers are involved.
  • Now, if your report connects to certain data sources (like SQL Server, Analysis Services, or other relational DBs) without encryption or across servers, PBIRS checks whether the target server is considered trusted.
  • If the server is not explicitly marked as trusted, the connection may fail — even if your connection string looks correct.

To handle this, Microsoft introduced the PBI_SQL_TRUSTED_SERVERS environment variable.

What is PBI_SQL_TRUSTED_SERVERS?

It’s a Windows environment variable that you set on the machine running Power BI Report Server.

  • This variable contains a list of SQL Servers that PBIRS is allowed to connect to.
  • By default, it is empty → which means PBIRS will block certain connections unless you explicitly “allow” the server.
  • If your reports connect to a SQL Server called SQLPROD01.domain.com, you must add it to the trusted list.

For more details, please check the Power BI Report Server Changelog

In Short, this message, “We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly,” means you now need to explicitly whitelist SQL Server machines by adding them to the PBI_SQL_TRUSTED_SERVERS environment variable on your Power BI Report Server machine.

Without this, PBIRS will block certain data connections for security reasons.

Solution

Here are the steps that solved the issue for us:

  1. Get SQL Server Instance Name
  2. Create DB Server Alias
  3. Add DB Server Alias to Environment System Variables
  4. Restart Power BI Report Server Service
  5. Update the Data Source settings
  6. Add DB Server IP and Hostname to “Hosts” file
  7. Enable TLS encryption

1) Get SQL Server Instance Name

  • Open your Report Server Web Portal
  • Navigate to your dashboard file, click on the “” to the option list, select “Manage” -> “Data Sources”.
  • In “Connection String” section, you will find “DBServerName\Instance;DatabaseName“.
Power BI Report Server - Data Source

2) Create Server Alias

No matter if your Database Server Name includes an instance or even a port, it’s recommended to create a Server Alias.

For example, if your SQL instance is defined as:

DBServer\DBInstance:14150

then you should create a SQL Server Alias and use that alias when adding it to the Environment System Variables.

How to Create Server Alias for database server

  1. Open CMD as Administroator.
  2. Type “CLIConfg“, to open “SQL Server Client Network Utility”.
  3. Click on “Alias” -> “TCP/IP“-> Provide the “Server Alias Name” as you prefer.
  4. Provide “Server Name“, and uncheck dynamic port, and provide the “Port” number if you don’t use the default one.
CLIconfg | Power Platform Geeks

3) Add DB Server Alias to Environment System Variables

As we earlier mentioned, in the May 2024 Power BI Report Server Update, A recent security change requires a privileged user to apply the “PBI_SQL_TRUSTED_SERVERS” environment variable on their Power BI Report Server machine for certain data types.

Read more details in the article, SQL Server certificate isn’t trusted on the client.

So, in this case, you have to add “DB Server Alias” to Environment System Variables by doing the following:

Steps

  1. Right Click on “This PC” -> Select “Properties“.
Properties of PC | Power Platform Geeks
  1. Click on “Advanced System Settings” -> Click on “Environment Variables“.
Environment Variables | Power Platform Geeks
  1. Below “System Environment” -> Click on “New
System Env | Power Platform Geeks
  1. Set the “Variable Name” to “PBI_SQL_TRUSTED_SERVERS“.
  2. Set the “Variable value” to “Newly Created Server Alias Name”, in our case, it’s “SPDB“.
New System Variable | Power Platform Geeks

In case, you have multiple servers, add it as the following: SPDB1,SPDB2 (Comma Seperated).

4) Restart Power BI Report Server Service

  1. On the Power BI Report Server, Open “Services
  2. Search for the “Power BI Report Server” Service, and restart it.
Start Power BI Report Server Service | Power Platform Geeks

5) Update the Data Source settings

  1. Open the Power BI Report Server Web Portal
  2. Navigate to your dashboard, and Edit it in Power BI Desktop

Ensure, you have using the optimized Power BI desktop for Power BI Report Server as mentioned at Missing Save To Power BI Report Server In Power BI Desktop

  1. Go to “Transform Data“, and select “Data Source Settings“.
  2. Select your “Data Source“, and click on “Change Source“.
  3. At “Server“, add the “Server Alias Name”
SQL Server Details | Power Platform Geeks
  1. Apply the changes, and then Save the file.

Go back to the portal, and reopen the dashboard, you will note that the error “We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly” is gone, and the issue has been solved.

6) Add DB Server IP and Hostname to “Hosts” file

If the issue still persist, so you have to add the DB Server IP to the Hosts File as the following:

  1. Navigate to the below path.
    • C:\Windows\System32\drivers\etc
  1. Open “hosts” file via an appropriate editor.
  2. Add the current server IP > click Tab from keyboard > add the URL.
hosts file | Power Platform Geeks

7) Enable TLS encryption

If you have followed all the troubleshooting steps and the problem still persists, the next thing to check is TLS encryption on the database server.

In our case, the issue was that the SQL Server instance did not have TLS encryption enabled. Once we enabled TLS on the database server and configured it to use a valid SSL/TLS certificate, the connection started working.

We then imported the same certificate into the Power BI Report Server machine to ensure trust between both ends. After that, reports connected successfully without showing the connection error.

Conclusion

The newer versions of Power BI Report Server no longer support non-encrypted connections to SQL Server. To make it work, you have two options:

  1. Explicitly whitelist SQL Server machines by adding them to the PBI_SQL_TRUSTED_SERVERS environment variable on your Power BI Report Server machine.
  2. Configure encrypted connections (TLS/SSL) on your SQL Server and ensure the certificate is properly trusted by the Report Server machine.
See Also

Mohamed El-Qassas

I'm Microsoft MVP, SharePoint StackExchange Moderator, Microsoft QnA Moderator, C# Corner MVP, Microsoft TechNet Wiki Judge, and Senior Technical Consultant with +12 years of experience in SharePoint, Project Server and Power Platform.

Leave a Reply