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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
devssolution
Frequent Visitor

You can't schedule refresh for this dataset because one or more sources currently don't support

Hello Firends,

 

I had created Power bi using Web.Contents(). also I implemented paging using Web.Contents() and it's working fine in Power Bi Desktop and Web.

But I am not able set Schedule Refresh on Powerbi Web. Getting following error.

You can't schedule refresh for this dataset because one or more sources currently don't support refresh.

 



Regrds,

Sandeep
 

 

 

 

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

Hi @devssolution,

Please vote the following idea that make functions refreshable when the data source is a parameter of the function.
https://ideas.powerbi.com/forums/265200-power-bi/suggestions/9312540-make-functions-refreshable-when...

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Are you using a function for the pagination?

 

let
 url="*****/global_fact/_search",
 GetJson = Web.Contents(url,[Query=[scroll="5m",size="1000"]]),
 FormatAsJson = Json.Document(GetJson),
     // Gets token from the Json response
    pageId= "",
    hints= FormatAsJson[hits],
    pageNumber = Int32.From(hints[total]/1000),
 FnGetOnePage =
  (url1,pageId,page,param) as record =>
   let
    query= if page=0 then [Query=[scroll="5m",size="1000"]] else [Query=[scroll="30s",scroll_id=Text.From(pageId)]],
    Source = Json.Document(Web.Contents(url1,query)),
    data = try Source[hits] otherwise null,
    pageId= try Source[_scroll_id] otherwise pageId,
    next = "*****/_search/scroll",
    res = [Data=data, Next=next , PageId = pageId,Param=[Query=[scroll_id=pageId,scroll="3"&Text.From(page)&"s"]]]
   in
    res,
 GeneratedList =
  List.Generate(
   ()=>[i=0, res = FnGetOnePage(url,"",i,[Query=[scroll="5m",size="1000"]])],
   each [i]<pageNumber and [res][Data]<>null,
   each [i=[i]+1, res = FnGetOnePage([res][Next],[res][PageId],i,[Query=[scroll="5m",size="1000"]])],
   each [res][Data])
in
    GeneratedList

From my understanding, if you use a function to obtain your data (in your code, it is the FnGetOnePage part), a refresh isn't supported in the service.  Maybe this is outdated: http://excelando.co.il/en/power-bi-cant-schedule-refresh-when-source-is-multiple-excel-files/

 

Maybe some of our experts @ImkeF@Greg_Deckler@MattAllington@Vvelarde can chime in (sorry if I left out any other experts!)

 

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.