Forum Discussion

Jaknap's avatar
Jaknap
New Member
1 year ago
Solved

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

  • 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.

6 Replies

  • v-kpoloju-msft's avatar
    v-kpoloju-msft
    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.

  • 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

    • v-kpoloju-msft's avatar
      v-kpoloju-msft
      Community Support

      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.

      • v-kpoloju-msft's avatar
        v-kpoloju-msft
        Community Support

        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.