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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors