Skip to main content

Power BI

Needs Votes

Bypass test connection/Ignore failure for Web Sources that depend on authorization header

Vote (166) Share
Elton Sequeira's profile image

Elton Sequeira on 09 May 2017 00:55:48

The power BI service runs a test connection on Web API data sources before pulling data. However for Web Sources whose response depends on a required authorization header fail to authenticate in the power bi service while setting up a scheduled refresh. The source is accessed using Web.Contents and by passing the URL, Relative path and authorization header. This works perfectly fine in Power BI desktop since it executes the GET request along with the authorization header without a test connection. If the same could be done in power bi service by either bypassing the test connection or ignoring failures then a schedule refresh could be setup.

Comments (24)
Elton Sequeira's profile image Profile Picture

Debbie Edwards on 05 Jul 2020 23:35:39

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

I have exactly the same problem. Ive implemented Text Analytics and it works fine in Desktop. However, when you go into Datasets Data Source Credentials you get Failed to update data source credentials: Web.Contents failed to get contents from 'https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/keyPhrases' (404): Resource Not FoundHide details Not only does this need to be fixed but Help. What is the workaround?

Elton Sequeira's profile image Profile Picture

Power BI User on 05 Jul 2020 23:32:58

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

Really disappointed and really need it to be fixed

Elton Sequeira's profile image Profile Picture

Jens Steinigen on 05 Jul 2020 23:30:40

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

...and more than a year later it's still a persisting issue. WHY?! Can't be that hard to fix. It's already working in Power BI Desktop.

Elton Sequeira's profile image Profile Picture

Lukas Krajnak on 05 Jul 2020 23:28:37

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

Can this be fixed, please?

Elton Sequeira's profile image Profile Picture

Rusty on 05 Jul 2020 23:27:24

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

There is a way to "bypass" using the azure proxy but comes at a cost which is not ideal.... This is something that should just work.

https://blog.kloud.com.au/2018/07/23/use-anonymous-authentication-on-web-data-sources-with-a-api-key-in-url/

Elton Sequeira's profile image Profile Picture

Power BI Ideas Admin on 05 Jul 2020 23:23:44

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

Has anyone found a work around for this extremely disappointing issue?

Elton Sequeira's profile image Profile Picture

Michael on 05 Jul 2020 23:22:36

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

'+1, please fix this

Elton Sequeira's profile image Profile Picture

Benjamin Ford on 05 Jul 2020 23:21:12

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

We also need this fixed urgently.

Elton Sequeira's profile image Profile Picture

Jeff on 05 Jul 2020 23:20:45

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

Agree, that a fix for this is needed. I have tried to understand for months why reports created in Desktop using Web API data sources can be refreshed OK, but cannot be scheduled for refresh in PBI service. I finally came across this thread today, and hope that something can be done.

Elton Sequeira's profile image Profile Picture

Roche on 05 Jul 2020 23:18:18

RE: Bypass test connection/Ignore failure for Web Sources that depend on authorization header

This feature is really missing in power bi service. It does not allows us to publish and Schedule reports using API such as Microsoft cognitive services.