Forum Discussion

Wingmen's avatar
Wingmen
New Member
6 months ago
Solved

Retrieve data from an external source

Hello PowerBI experts,

I'm new to PowerBI and have a problem I can't quite figure out yet.

We work with a company where we enter data. The company created an API connection for us with a client certificate. We received the following from the company: URL, .PFX + password, .PEM, .CSR, and .Key.

 

What works:

- Visit URL through browser and login with the .pfx that was included. We can see the data.

- Via the webversion of PowerBI we can connect to the server (Entering url and the long key thats included in .key file. (PowerBI shows the "Online" symbol.)

 

What isn't working:

- Logging in with PowerBI desktop APP. We keep getting the error: Web.Contents could not retrieve the data. (400) bad request. There is not option to select the .pfx or .pem certificate.

 

I login as follows:

1. Open PowerBI ->Get Data->Web->Enter URL->OK

2. I get the following options: Anonymous, Windows, Basic, Web-API, Organisation account.

3. Select Web-API. Paste the very long key thats in the .key file that was included. (The same key i used for PowerBI webversion)

4. Connect.

5. Web.Contents could not retrieve the data. (400) bad request.

 

After a quick Google search, I discovered that PowerBI desktop cannot use client certificates to authenticate to an API.

I'm finding many different solutions online, but I have no idea which is the easiest and safest way. Can anyone give me some advice? (btw we have a Microsoft365 environment.)

 

Thank you very much!

 

 

 

4 Replies