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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors