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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Your data source can't be refreshed because the credentials are invalid

Hello, I am getting the following error whenever i try to refresh a dataset or schedule a dataset refresh in PBI Service:
"Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again."
In PBI Desktop it works correctly, I am acessing a Restful Api with a bearer token validation. The login resquest is sent to url/Login with 4 params in the header and then i recieve the token which i pass to 2 other api calls. In Power Bi Service I get the error mention above and whenever i click the prompt to edit the credentials I can only input an user and password and not the header values needed to authorize me into the api. Is there an workaround for this? I need to schedule refreshes for this dataset in PBI Service.

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

If the gateway set up well, and is there any other data source in the report which requires gateway?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I am not using any gateway. I make 3 calls to the Restful Api and 1 to a news feed. The news feed works fine because doesn't need authentication but the Rest Api doesn't work because I cannot send the header data for the authentication in PBI Service.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors