Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Scheduled Refresh Error (Data Source Credentials)

I've published an online report and it was getting database from an API perfectly while using desktop version.

Now I'm trying to set Schedule Refresh on to get data from the same API, but it shows the error:


Anonymous or basic authentication methods shows the same error:


On Refresh history:


What should I do to solve that error?






Super User
Super User

Hi @gasilva8 


What I would suggest is to look at this solution where you need to put in your details as part of the header call


Solved: Retrieve API response headers - Microsoft Power BI Community

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Power BI Blog

Hi @GilbertQ

Actually that is what I'm doing. Here is the code I'm using, and it works fine with PB Desktop.


username = "",
password = "mypassword",
ChecklistGetOnePage =(
pagina) as record =>
txPagina = Text.From(pagina),
urlOptions = [Headers=[email=username, password=password], Query=[page=txPagina]],
Source =
data = Source[data],
registos = [Data=data[items],Pages=data[lastPage]]

resFirstPage = ChecklistGetOnePage(1),
totalPaginas = resFirstPage[Pages],

GeneratedList =
[i=0, res = ChecklistGetOnePage(i+1)],
each [i]<= totalPaginas,
each [i=[i]+1, res = ChecklistGetOnePage(i+1)],
each [res][Data]),
GeneratedListFinal = List.Combine(GeneratedList),
#"Converted to Table" = Table.FromList(GeneratedListFinal, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1",

#"Expanded Column1"







Thanks for that it looks good


What did you set the privacy setting to?


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Power BI Blog


I set the privacy level as "None" on both PB desktop and web.

Hi @gasilva8 


I think then it might have to do with the way it has been configured in the Power Query.

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Power BI Blog

Helpful resources

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors