Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello everyone !
I've created a dashboard using a data source from an advanced Web connection, but when I publish this dashboard, the connection becomes a Web connection (and not Web V2 as it should be), so I can't enter a Bearer token and my connection is in error. Do you know how can I solve this issue ?
Thanks !
Solved! Go to Solution.
Hello,
I recreated my report from scratch and my problem solved itself, without any change in PowerQuery. Thanks for the help !
Hi @Pronocalme , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.
Hello,
I recreated my report from scratch and my problem solved itself, without any change in PowerQuery. Thanks for the help !
Hi @Pronocalme , Hope your issue is solved. If it is, please consider marking it 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details. Thank you.
Hello,
Thank you ChatGPT and Ibendlin for your replies but it still doesn't work, I can't specify in PowerBI desktop that I want to use a Web V2 connection.
Here is my query :
let
Source = Csv.Document(Web.Contents(
"my-api-endpoint",
[
Headers = [
Authorization = "Bearer " & BearerToken
]
]
),
[Delimiter=",", Columns=9, Encoding=65001, QuoteStyle=QuoteStyle.None])
in
Source
Hi @Pronocalme , thank you for reaching out to the Microsoft Fabric Community Forum.
Sorry to know it isn’t working. Please consider below steps to ensure you are using a Web V2 connection.
Power Query Web Connector - Microsoft Learn
https://learn.microsoft.com/en-us/powerquery-m/web-contents
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
2. In the "Advanced" settings, ensure that you select "Web V2" as the connection type. If you do not see this option directly, it might be configured within the API key or authentication settings.
News to me, and not supported by your screenshot. Are you using a prerelease version?
Hi @lbendlin, Thanks for your reply. Apologies for not explaining it clearly.
As of October of 2021, Power BI Desktop uses Microsoft Edge WebView2, by default, for OAuth authentication for all connectors. so, i can't share a screenshot showing me selecting Web V2. But as i am not sure which version @Pronocalme is using, i gave two ways to ensure Web V2 is used.
Please refer the below documentation:
https://learn.microsoft.com/en-us/power-query/oauth-edge-chromium
Thank you.
Thanks for your reply. Can you please tell me how to select "Web V2" as the connection type as you said there :
"In the "Advanced" settings, ensure that you select "Web V2" as the connection type. If you do not see this option directly, it might be configured within the API key or authentication settings."
Hi @Pronocalme , thank you for reaching out to the Microsoft Fabric Community Forum.
Please consider below:
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Hi @Pronocalme ,
The issue you're facing with the Web V2 connection reverting to a basic Web connection in Power BI Service is common when using advanced Web connections with custom headers or Bearer tokens. Here's how to resolve it:
Use a Parameter for the Bearer Token:
Configure the Query Properly:
let
Source = Web.Contents(
"your-api-endpoint",
[
Headers = [
Authorization = "Bearer " & Parameters[BearerToken]
]
]
)
in
Source
Publish to Power BI Service:
Set Up the Data Source Credentials in Power BI Service:In Power BI Service, go to Settings > Datasets > Data source credentials.
Alternative: Use a Custom Connector:
Consider Using a Gateway:
Please mark this as solution if it helps you. Appreciate Kudos.
ChatGPT is wrong here
Authorization = "Bearer " & Parameters[BearerToken]
Should be
Authorization = "Bearer " & BearerToken
If BearerToken is directly declared as a parameter in Power BI, we can use it without Parameters[].
But, If it's part of a custom table or query, Parameters[BearerToken] might apply.