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
Anonymous
Not applicable

Status 400 Error when setting up an SQL Gateway on Power Bi

Hi I am getting the below message when creating a new connection to an on prem SQL database via Power BI. I'm using the same credentials and setup that work on another connection to the same on prem sql server but on a different sql database. Unfortunately I can't find any difference or see any logs to give me a clue as to why are where the error is coming from. Any help would be appreciated. The credential setup is basic username and password with organisational privacy level.

afarlo79_0-1686598980155.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

So in the end it was the authentication method on 365 needed to be identical to what i was using on Power BI Desktop. So simple when someone points it out !!!!

View solution in original post

7 REPLIES 7
GilbertQ
Super User
Super User

Thanks for letting us know.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @Anonymous 

 

Could you make sure that you are running the latest version of the Gateway software?

 

Also can you confirm that the user account has got access to the SQL Database?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ 

Running the latest version of the Data Gateway Software 3000.174.13 (May 2023).

The username used has full access to the database. Just to be sure I logged in to the on Prem SQL Server with the same username and was able to run queries on the SQL Database.

Hi @Anonymous 

 

Could it be possible that the Gateway server cannot connect to the Internet via https?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ I think if the Gateway server could not connect to the Internet via https then all our other services would be blocked as well. However, we have another database on the same SQL Server that has no issue connecting via the Gateway to Power BI, thats the frustrating part. Not sure where I can look at logs that would possibly identify the issue.

Anonymous
Not applicable

So in the end it was the authentication method on 365 needed to be identical to what i was using on Power BI Desktop. So simple when someone points it out !!!!

What do you mean it has to be the same? Mine is the same and Im getting the same type of issue.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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