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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
alanperrott
New Member

'Status code 400' error when connecting SQL data source to on-prem gateway

I have a connection to a remote SQL server data-source which works OK in PBI Desktop. I can add the data-source to the gateway in 'Manage Geteways' and the connection is successful. However, when I try to use the on-prem gateway for my datasource it fails with the unhelpful error "Something went wrong...", and a status code of 400. I have restarted the gateway service several times to no avail. I have turned on 'additional logging' but that doesn't show anything. Can anyone suggest why this might be failing, or advise how I can get more diagnostics?  

Capture.JPG

21 REPLIES 21

Thanks for the support Xiaoxin.

 

I have been through the gateway logs with 'additional logging' enabled and there are no errors reported.

 

I have installed Fiddler on the server - I presume that I have to use HTTPS Mode in the gateway for the data to be captured by Fiddler, so I have done this. Fiddler shows the various tunnels being set up, but other than that I don't see anything significant. When I try to apply the gateway connection to the dataset in PBI settings then I don't see any activity in Fiddler, but  then I'm not 100% certain what I should expect to see.

 

In PBI settings everything still looks OK until I try to apply the gateway to the dataset: the gateway is online and connection tests are successful; in the Dataset settings I can see that the gateway is available and online, but when I try to apply it then I get the 'status code 400' error. 

 

I am at a loss to know what else I can check...

 

Alan.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.