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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dataset refresh : successfull via PBI-Desktop, but erroneous after publish to PBI-Service

1.) I created a web connection via REST API to a webapp calles YNAB:

2019-09-23 11_08_19-YNAB - Power Query-Editor.png

 

2019-09-23 11_10_09-YNAB - Power BI Desktop.png

 

 

2.) Authentification is done via "Web" connection

2019-09-23 14_19_36-YNAB - Power BI Desktop.png

 

2019-09-23 12_07_23-YNAB - Power Query-Editor.png

 

Please be aware that the Authorization is done via the HTTP Parameter, with the "Bearer Token".

 

 

3.) If I now publish the PBI-Report to the PBI-Service then I can see the same date as I saw in PBI-Desktop.

2019-09-23 15_11_55-YNAB – Power BI - Vivaldi.png

 

4.) But when I try to refresh the report, I get en error :

 

2019-09-23 11_15_00-Power BI - Vivaldi.png

 

5.) The Problem is, that the Authentification is done inside the query. Therefore those values here have to be "Empty" and "Anonymous".

2019-09-23 11_15_25-Power BI - Vivaldi.png

 

Thats also the case at the beginning, when I created the data connection.

 

Any Idea how I can connect to my webapp, so that I would be able to refresh the dataset ?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

I'd like to suggest you to add 'relative path' optional parameter to your web connector to use anonymous mode and internal authorization keys as data credentials.

Source=Web.Contents("https://api.youneedbudget.com", [Headers=[Authorization=xxxxxxxxx],RelativePath="/v1/budgets"])

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

I'd like to suggest you to add 'relative path' optional parameter to your web connector to use anonymous mode and internal authorization keys as data credentials.

Source=Web.Contents("https://api.youneedbudget.com", [Headers=[Authorization=xxxxxxxxx],RelativePath="/v1/budgets"])

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors