Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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.

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,


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.
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

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors