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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
iBusinessBI
Kudo Collector
Kudo Collector

Work efficiently with REST API calls in Power Query (429 Too Many Requests error)

I have 4 Queries that use API calls and 3 other Queries that reference these 4 and Merge them with some logic.
Everything worked well till yesterday when I started to get this error: "429 Too Many Requests"
There is a Rate limit of 100 calls per minute but only for the first Query, that should be run only ONCE (see below).
I think that because of Query folding the first Query is actually trigerred many times by all other Queries because they reference it.
Below is the description (unfortunately, I cannot upload the pbix file):
1. Query "Customers"- gets a list of customer ids from API call (https://api.somecrm.com/v1/customers)
2. Query "Purchase History" - References Query 1 and adds an "Invoke Custom Function" column.
The function gets purchase history for each customerid (from the first query) using another API call (https://api.somecrm.com/v1/purchasehist/{customerid})
3. Query "Customer Tickets" - Similar to Query 2: References Query 1 and adds an "Invoke Custom Function" column.
The function gets Customer Tickets history for each customerid (from the first query) using another API call (https://api.somecrm.com/v1/tickets/{customerid})
4. Query "Call Center" - Similar to Query 2: References Query 1 and adds an "Invoke Custom Function" column.
The function gets Customer Calls history for each customerid (from the first query) using another API call (https://api.somecrm.com/v1/calls/{customerid})
 
So, the list in Query 1 is the same for all the other 3 Queries.
All 4 Queries are not loaded, but are referenced by 3 other Queries that Merge them with some logic and only the Last Query is loaded into the model.
 
I feel that each time the custom functions run when referencing the first Query, they trigger it agai and again and again.
1. How can I check it?
2. How can I make sure the first Query is run ONLY ONCE? Even if other queries reference it, I want them to reference the already existing list of customer ids, and not re-run the first query.
3. Mybe Table.Buffer will work? Or some other "staging" mechanism?
Please help
 
1 REPLY 1
lbendlin
Super User
Super User

1. Use your favorite network sniffer, or use the Power Query "Diagnose" option.

2. You can't. Power Query has a mind of its own when it comes to meta data refresh.

3. Depends on the size of the result set.  May help tremendously or may not help at all. You'll have to try it out.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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