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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SRS11
Frequent Visitor

Airtable - Power Bi Service = Dynamic Source Refresh Error

Hi,
I have a M query below which works fine in Power Bi Desktop but fails in Power Bi Service due to Query 1 Dynamic Source Refresh error.

I understand that I need to add amend to add a Relative Path to make this work but after numerous attempts am now stumped.

Any suggestions please?

 

let
Pagination = List.Skip( List.Generate( () => [Page_Key = “init”, Counter=0], // Start Value
each [Page_Key] <> null, // Condition under which the next execution will happen
each [Page_Key = try if [Counter]<1
then “”
else [WebCall][Value][offset]
otherwise null, // determine the LastKey for the next execution
WebCall = try if [Counter]<1
then Json.Document(Web.Contents(“https://api.airtable.com/xxxxx”, [Headers=[Authorization=“Bearer keyxxxxxxx”]]))
else Json.Document(Web.Contents(“https://api.airtable.com/xxxxx?offset=”&[WebCall][Value][offset] , [Headers=[Authorization=“Bearer keyxxxxxxx”]])),// retrieve results per call
Counter = [Counter]+1// internal counter],
each [WebCall]

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @SRS11 ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

View solution in original post

3 REPLIES 3
dbremer
Frequent Visitor

@SRS11 , would you be able to share the modified code that allowed you to automatically refresh? Airtable has recently switched to Personal Access Tokens, but your modified code should still work. I did dive into http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/, but I could not get any of my modifications to work.

v-stephen-msft
Community Support
Community Support

Hi @SRS11 ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

v-stephen-msft
Community Support
Community Support

Hi @SRS11 ,

 

Please kindly refer to

Dynamic Web.Contents() and Power BI Refresh Errors

 

The article has content related to refresh errors.

 

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors