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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jhirv08
New Member

Power BI embedded slow request time powerbi/refresh/subscribe

When we embed a report to our React application, this API call inside the embedded report minified JavaScript (not in our code, the code shipped from Microsoft when using powerbi-client-react package) seems to take time and fail around half of the time:

 

POST call to https://wabi-north-europe-n-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

 

Half of the time it is okay, very quick to load the report. In that case we have observed that this powerbi/refresh/subscribe method does not seem to block in anyway, even though it is "pending" in the network tab of browser.

 

When it blocks, it is "pending" but never resolved or it starts the request again (usually fails).

 

In the minified code shipped from Microsoft to our application, in browser, we can see:

powerbirefreshsubscribe.png

 

I believe this part of code is closed source, as I can't find it from Microsoft GitHub with search.

 

There are no token issues in our application, it might occure also when fetching a fresh new token to embed.

 

What is the call and what does it do? It is not documented in the Power BI documentations. This question has been asked at least twice in these forums, but no good answers given:

 

Should I open issue in either powerbi-client-react or PowerBI-JavaScript?

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

Hi @jhirv08 ,

Based on your description, it seems you're encountering intermittent performance issues with the API call when embedding Power BI reports into a React application.

 

The call is likely related to subscribing the embedded report to receive updates when the underlying data or model is refreshed. This is crucial for ensuring that your embedded reports display the most current data without requiring a full reload of the report or page. The behavior you're observing—where the call sometimes blocks and fails—could be influenced by several factors, including network conditions, Power BI service load, or specific configurations of your embedded reports.

More details: Optimization guide for Power BI - Power BI | Microsoft Learn

Best practices for faster performance in Power BI embedded analytics - Power BI | Microsoft Learn

 

If it does not help, please provide more details.

 

Best Regards
Community Support Team _ Rongtie

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

 

View solution in original post

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @jhirv08 ,

Based on your description, it seems you're encountering intermittent performance issues with the API call when embedding Power BI reports into a React application.

 

The call is likely related to subscribing the embedded report to receive updates when the underlying data or model is refreshed. This is crucial for ensuring that your embedded reports display the most current data without requiring a full reload of the report or page. The behavior you're observing—where the call sometimes blocks and fails—could be influenced by several factors, including network conditions, Power BI service load, or specific configurations of your embedded reports.

More details: Optimization guide for Power BI - Power BI | Microsoft Learn

Best practices for faster performance in Power BI embedded analytics - Power BI | Microsoft Learn

 

If it does not help, please provide more details.

 

Best Regards
Community Support Team _ Rongtie

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

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors