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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Jaknap
New Member

Embedding PowerBI in a PCF Control.

Hello All,

I am using PowerBI JavaScript SDK to embed a powerbi in a PCF control. The PCF control is inside a Dynamics 365 model driven app. On loading the form in a powerapps mobile, I am getting webviewreset error. Also is there any way to disable the realtime update in PowerBI report in the SDK.

Regards,

J

1 ACCEPTED SOLUTION

Hi @Jaknap,
I have identified few alternative workarounds that may help resolve the issue. Please follow these steps:

The Power BI JavaScript SDK does not provide direct methods to disable real-time updates. However, you can manage the frequency and behavior of updates by adjusting the report configuration in Power BI. Reports linked to real-time or streaming datasets will continue to update automatically.

To reduce network impact and control update frequency, consider:

  • Configuring the report to use import mode (static datasets) instead of live or streaming datasets.
  • Utilizing "load" or "render" events in the SDK to load reports only when necessary (e.g., on-demand).


The frequent subscribe requests are likely due to the Power BI report’s configuration or the live connection to a data source. These requests occur as Power BI needs to keep the data synced. To manage this, suggest:

  • Using the embedConfig parameter to control interactivity settings, such as disabling auto-refresh features.
  • Employing event handlers like onDataChanged to manage update timings, rather than relying on default behaviors.


Kindly refer to these links:
Power BI embedded analytics overview - Power BI | Microsoft Learn

Power BI embedded analytics Client APIs | Microsoft Learn

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

Thank you for using Microsoft Community Forum.

View solution in original post

6 REPLIES 6
Jaknap
New Member

Thank you for your response. Much appreciated. Is there any settings or workaround I can do at the SDK level?

I am seeing lot of subscribe request being made in the network tab. Is this because of the real time update.

 

Thank You

J

Hi @Jaknap,
I have identified few alternative workarounds that may help resolve the issue. Please follow these steps:

The Power BI JavaScript SDK does not provide direct methods to disable real-time updates. However, you can manage the frequency and behavior of updates by adjusting the report configuration in Power BI. Reports linked to real-time or streaming datasets will continue to update automatically.

To reduce network impact and control update frequency, consider:

  • Configuring the report to use import mode (static datasets) instead of live or streaming datasets.
  • Utilizing "load" or "render" events in the SDK to load reports only when necessary (e.g., on-demand).


The frequent subscribe requests are likely due to the Power BI report’s configuration or the live connection to a data source. These requests occur as Power BI needs to keep the data synced. To manage this, suggest:

  • Using the embedConfig parameter to control interactivity settings, such as disabling auto-refresh features.
  • Employing event handlers like onDataChanged to manage update timings, rather than relying on default behaviors.


Kindly refer to these links:
Power BI embedded analytics overview - Power BI | Microsoft Learn

Power BI embedded analytics Client APIs | Microsoft Learn

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

Thank you for using Microsoft Community Forum.

Hi @Jaknap,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @Jaknap,


I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Hi @Jaknap,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

v-kpoloju-msft
Community Support
Community Support

Hi @Jaknap,
Thank you for reaching out to the Microsoft fabric community forum.

 

After reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:

WebView reset error: This is a known issue on Power Apps mobile when WebView fails to persist or reinitializes unexpectedly.

Disabling Real-Time Updates in Embedded Power BI Reports: By default, Power BI embedded reports auto refresh visuals depending on their data source or live connection settings. However, there's no direct SDK method to pause real-time updates.

This error is typically related to how PowerApps mobile handles web content. When embedding large or interactive elements like Power BI reports, the mobile app may reset the view due to memory or performance constraints.

To reduce the chances of this happening:

  • Try simplifying the report being embedded fewer visuals, pages, or live elements often lead to better performance.
  • Make sure the PCF control is optimized for mobile and only loads the report when needed.
  • Avoid actions that trigger reloading or heavy resource usage on mobile devices.

Currently, the Power BI JavaScript SDK doesn’t offer an option to disable real-time updates directly. However, this behaviour is influenced by how the report is designed in Power BI:

  • Reports built on real-time or streaming data sources will naturally update frequently.
  • To prevent this, the report should ideally be designed using static datasets (import mode) and with real-time features turned off before it's published.

Kindly refer to the below link :
Troubleshoot issues in the Power Apps mobile app - Power Apps | Microsoft Learn

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

Thank you for using Microsoft Community Forum.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors
Top Kudoed Authors