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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
FFFritz
Regular Visitor

Web Source via Gateway - Could not establish trust relationship for the SSL/TLS secure channel

 

When trying to use a Gateway Connection of the type Web we the following error.

I assume that the Issue could be solved when logging in to the standard Gateway user User “pbiegwservice” and downloading and installing the root certificate of the Web Server.

But there is no Password available to log on to that User.

Can someone help?

 

Underlying error code:

-2147467259

Underlying error message:

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

DM_ErrorDetailNameCode_UnderlyingHResult:

-2147467259

Microsoft.Data.Mashup.ValueError.Reason:

DataSource.Error

 

 

 

2 REPLIES 2
daviddusa
Regular Visitor

I have just run into the same error.

 

I wanted to fetch data from a web server via REST API that is located on an on-premises network. I managed to import the data into Power BI Desktop using a custom connector because I added the server's CA certificated to the user's cert store on my Windows machine.

 

Next, I created a report in Power BI Desktop and published it to Power BI online. Because I wanted my data set to refreshed in Power BI online, I installed the on-premises enterprise data gateway on the Windows machine. Configured everything as per the official docs (add custom connector to the gateway, add data source to the the gateway in Power BI online), but when trying to add the data source to the gateway in Power BI online, I got the error mentioned above:

 

"Could not establish trust relationship for the SSL/TLS secure channel".

 

As @FFFritz suggested, adding the CA cert to PBIEgwService user's Trusted Root Certification Authorities store might help, because the gateway is running in the name of PBIEgwService by default.

 

You could import the cert to the service account following this article, but selecting "Service account" instead of "Computer account" and select "On-premises data gateway service". I tried that in the first place but it did not worked. I removed the CA cert from the PBIEgwService's cert store to start with a clean state and imported it to the local computer's cert store as Trusted Root Certification Authority. This solved the problem for me.

 

David

Anonymous
Not applicable

Hi @FFFritz , how does your data look like?

 

I just solved this issue on mine. I have a query that looks like this:

 

Initial step: ingest data from Oracle server

Step 2: enrich with data from dataflow using common key

 

Basically, the merged query did not work well. I solved it by migrating the first bit onto a dataflow as well, so now it looks like this:

 

Initial step: ingest data from dataflow

Step 2: enrich with data from the same or another dataflow.

 

I believe there is an issue when the same query tries to communicate with a Dataflow and the on-prem gateway.

 

Hope this helps.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors