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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors