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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
salem_wafi
Frequent Visitor

Unable to Refresh multiple (API) Web Queries that all use the same offline access token

I have a PowerBI Desktop file that has 17 power queries and all of them request the same server "www.example.com/graphql/..." with the same offline access token (p.s. the server uses Keycloak for authentication/authorization).

This is an example of one of the 17 queries API calls:

 

yyyy.png


But the problem is when I click on refresh to refresh all of these queries it starts loading for like 3-10 minutes (based on internet speed and server load I assume)

And after waiting one of two happens.
either it refreshes all the data correctly or sometimes it fails due to timeout error:

 

rrr.png

 

 

My question now is how to avoid the timeout error that sometimes happens. 

1 ACCEPTED SOLUTION

@Anonymous 
Actually, I was able to find another solution,

I had to disable the parallel loading so that it would send one request at a time:

image-20240801-221416.png


it seems our server gets busier and slower when processing all of these parallel requests simultaneously, which causes it to hit the 100-second Cloudflare timeout for some of them.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @salem_wafi 

Try  adding a "timeout" parameter in Web.Contents() function. Here is a similar case for your reference
Web.Contents - PowerQuery M | Microsoft Learn
Solved: Query Timeout on update - Microsoft Fabric Community

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thanks @Anonymous 
I tried that, but now it throws 524 because Cloudflare on the server timeout at 100 seconds, and that can't be changed.
Is there a workaround for that?

salem_wafi_0-1722464997862.png

 

@Anonymous 
Actually, I was able to find another solution,

I had to disable the parallel loading so that it would send one request at a time:

image-20240801-221416.png


it seems our server gets busier and slower when processing all of these parallel requests simultaneously, which causes it to hit the 100-second Cloudflare timeout for some of them.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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