Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
In the js library from https://github.com/microsoft/PowerBI-JavaScript we encounter a lot of errors caused bij postMessage functions. (Failed to execute 'postMessage' on 'Window': #<Object> could not be cloned.) This is mainly caused by the interactions of the embedded content with the embedding window (mostly an iFrame) simply putting stringify on the postMessage functions is a dirty work arround for the error but no guarantee the embedding still behaves as intended.
Could someone please assist?
Hi @dvanlooy ,
You seems to want to embed your Power BI Report by Javascript. Here I suggest you to make sure what kind of embedded methods you want: App owns data or User owns data.
For reference:
Embed content in your Power BI embedded analytics application for your organization - Power BI | Mic...
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
You can refer to the sample GitHub - microsoft/PowerBI-Developer-Samples: A collection of Power BI samples for developer use. .
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Rico,
I am following this sample: https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-power-bi-salesforce and using 'app owns data'. This requires the powerbi javascript library to be used. Chrome browser (by far most used browser) is throwing this exception by this javascript library when used in combination with an iframe as documented.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 2 |