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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Idrisaurangzeb
Regular Visitor

Dataset not refreshing via API in Power BI web service& headers not being paased

Hello,

I have setup a new datasource in PowerBI desktop to get data over an API (see below).

API Issue.PNG

 

Everthing works fine locally, and I'm able to refrersh the data in PBI desktop, however when I publish the report to PBI web, and try to refresh the data, I receive the following error; 

The credentials you provided for the data source are invalid. Please check the credentials for all the data sources.
Please try again later or contact support. If you contact support, please provide these details.

 

I have no idea as to why the headers are not being passed through to the PBI Web.

This is what I see see in PBI web;

PBI Web.PNG

 

Please help! 

1 ACCEPTED SOLUTION
Jayendran
Solution Sage
Solution Sage

Hi @Idrisaurangzeb 

 

Please see my answer in the below link.

https://community.powerbi.com/t5/Service/Refreshing-data-from-REST-API-works-on-Desktop-fails-on-Ser...

 

Your api is using api-key autentication which is not currently directly supported by PowerBI service. Bcoz PowerBI Service only allow API autentication with anonymus , Windows and Basic

 

The workaround is to use a Gateway and Skip Test Connection 

 

https://community.powerbi.com/t5/Community-Blog/Power-BI-Gateway-Monitoring-amp-Administrating-Part-...

 

 

View solution in original post

4 REPLIES 4
luchitogiuse
Frequent Visitor

@Jayendran Thanks you a lot!! it worked! thanks!! 

Jayendran
Solution Sage
Solution Sage

Hi @Idrisaurangzeb 

 

Please see my answer in the below link.

https://community.powerbi.com/t5/Service/Refreshing-data-from-REST-API-works-on-Desktop-fails-on-Ser...

 

Your api is using api-key autentication which is not currently directly supported by PowerBI service. Bcoz PowerBI Service only allow API autentication with anonymus , Windows and Basic

 

The workaround is to use a Gateway and Skip Test Connection 

 

https://community.powerbi.com/t5/Community-Blog/Power-BI-Gateway-Monitoring-amp-Administrating-Part-...

 

 

Jayendran, I read your follow up article but this did not work. I was wondering if you were referring to a Personal Gateway vs an Enterprise Gateway for this particular post? Did you mean this will work via a Personal Gateway?

Hi @robjbow , I was referring to enterprise gateway and not the personal one

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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