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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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