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
gdecome
Helper III
Helper III

Credentials to access REST API (Refresh in PBI Services)

I created a dashboard to get data from a 3rd party data source through REST APIs and it is working fine in PBI Desktop. When trying to refresh through PBI Services it asks me to provide credentials. It works fine for another sources like sharepoint (I use my organizational account). For the API site, I tried all options that I have for User/Password (for site) but it didn´t work. I can access and refresh in PBI desktop but no refresh in PBI services. The data owner told me there is no other credential to use. I´m provide what is needed in M-Code and it is working Source = Json.Document(Web.Contents("http://abc.xyz.com/rest-ws/getContracts", [RelativePath="?maxRecords=100&offset="&Number.ToText(Offset), Headers=[Authorization="Basic xxxxxxxxxxx"]]))
3 REPLIES 3
Nolock
Resident Rockstar
Resident Rockstar

Hi @gdecome,

what is the error message in PBI Service when you refresh your dataset?

The message is:

"Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again"

When I try to edit my credentials I have 3 options:

Anonymous (doesn´t work) / Windows (doesn´t work) / Basic (there is no User/Password that I can use here. I checked with the data owner)

 

Hi folks, any idea or suggetion to fix that problem?
Just created another dashboard using APIs for another system and the error is still the same as before.
In Desktop it works fine connecting as Anonymous the does not work in PBI services when refreshing.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.