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
Anonymous
Not applicable

Web connector returning excel file - Multiple API calls on refresh

Hi,

 

We're working to set up an integration from PowerBI (desktop for the time being) against a REST api. The REST API responds with an excel file (xlsx).

PowerBI designer works great in that it's able to see that the response is an excel file and will show the appropriate interface to create a table per sheet etc on set-up.

However, whenever we refresh the data it seems to be doing an API call to the endpoint for every sheet in the excel file for which we acknowledged a table, which obviously creates for a lot of unnecessary calls to our server.

1) This seems unexpected behaviour; are there any plans to change this?
2) How will a refresh on PowerBI server be handled? How many calls? (PowerBI server acknowledges "Datasets" more explicitly)

 

Thanks!

4 REPLIES 4
Nidhi_Sonar_123
Regular Visitor

Hi, 

 

I am looking for a solution to the similar issue where my api responds with an excel file, but I am stuck in reading and processing the response in my power query

Could you please share a sample code how you achieved this.

 

Thanks in advance 

v-yuezhe-msft
Employee
Employee

@Anonymous ,

I am afraid that the above behavior is by design currently.

Power BI will request to get schema and data loading for each sheet, which makes multiple API calls on refresh. And if you turn on backgroud data option in Power BI Desktop, you will get additional API calls. You can disable this option to mitigate this issue.
1.PNG




Regards,
Lydia

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.
Anonymous
Not applicable

Are there any plans to change this?

A motivation for us to go with this approach was because of the ease of use of the set-up and the ability to deliver all of the data at once.
As owners of the endpoint we planned on writing instructions for users to connect; having them write M (or copy/paste) is a whole different story.

 

Could you explain the behavior for PowerBI online (once published)? We didn't test yet, but should we also expect it to make multiple calls?

@Anonymous ,

I am afraid that there is no plan to change this. In your scenario, you can use fiddler to check the web call after publishing PBIX file to Power BI Service.

Regards,
Lydia

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.

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