cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors