Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rgupta25
Frequent Visitor

Power BI Gateway Server Error - target principal name incorrect

Hello All,

I am having an issue in Power BI gateway connection to only SQL Server connections, it seems they appear as OFFLINE on the portal but on the back end the users are able to refresh their dataset, however this is the error I get when trying to fix and get the connection ONLINE: 

 

PBI PROD03 Gateway: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.

 

I can connect to the SQL database with the same credentials locally via SSMS. This issue just started today and I am not sure of the fix, Please help!!!!

 

 

Thanks,
Renu

7 REPLIES 7
Anonymous
Not applicable

Thanks for lbendlin's concern about this issue.

 

Hi, @rgupta25 

First make sure that the server name provided in the connection string matches the name in the SSL certificate. If it does not match, you will need to update the connection string or reconfigure the certificate.Also make sure that SSL/TLS is enabled.


You can also see if you can fix the problem by editing the data source settings in Power BI Desktop.

vfenlingmsft_1-1730443835714.png

 

vfenlingmsft_0-1730443804541.png

 


Sometimes installing a new version of the gateway may also resolve the potential issue.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

I can connect to the SQL database with the same credentials locally via SSMS.

But - can you do that with encryption?

No in SSMS, I have to enable Trust server certificate and Enable Always Ecrypted, but not sure how to set these configurations on the Power BI On-premise gateway server. The server does not have SSMS installed on it. All our SQL server gateway connections show OFFLINE on the portal however, users are able to refresh their semantic model in Power BI service using those gateway connections, successfully.

 

Do you know where and how to set this configuration on the server?

 

Thanks,

Renu

Hello Renu,
We are facing the exact same problem as the one you describe, and the problem also started suddenly. Could you please share whether you were able to fix this issue? Did you have to install a new version of the gateway?
Many thanks.

You have to whitelist the sql servers in the config file.

Thank you, Renu. Yes, we discovered the solution, but thank you for following up.
I posted the details in another thread earlier this month.
https://community.fabric.microsoft.com/t5/Service/SQL-Server-connections-offline/m-p/4400437#M264758

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.