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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

How set schedule refresh with api web

Hello, I have an error message with the impossibility of programming the refresh of my dataset.

 

"You cannot schedule refresh for this dataset, because the following data sources do not support refresh at this time:"

 

I am using a web api with a token system. See the screen

My function:

= (tableImport) =>
let
Source = Json.Document(Web.Contents("https://stafiz.net/api/" & tableImport, [Headers=[Authorization="Bearer " & ApiToken]])),
ConvertTable = Table.FromRecords({Source}),
Develop = Table.ExpandListColumn(ConvertEnTable, "data"),
KeepData = Table.SelectColumns(Developer,{"data"})
in
KeepData


And this with my "ApiToken" parameter in text type.

What is the workaround of the problem please? I came across this article but my technical level is not enough to understand what to do. Thanks a lot for your help.

 

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to the error message, it means that refreshing this type of data source is not supported in the Power BI service.

As a workaround, what you can do is to use the relative path option, refer to the following blog.

Setting a scheduled refresh on a Dynamic Data Source in Power BI | by dataninja | DataDrivenInvestor

Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query An...

 

Or check if this feature option is disabled.

vhenrykmstf_0-1644460995606.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please show the query that calls the function.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.