Forum Discussion
PowerBI Dashboard Embed iframe src Circular structure console error
- 1 year ago
Hi KCChan,
Thanks for the follow-up and for confirming that you have already implemented deep cloning and updated to the latest Power BI client version.
Since the issue is still occurring intermittently, it is possible that certain elements in the runtime environment such as Angular-specific services, observables, or context-bound callbacks might be unintentionally introducing circular references into your embed configuration. Here are a few suggestions to help further isolate the issue:
- Create a fresh embedConfig object for each embed attempt, especially after rerenders.
- Avoid passing Angular services or zone related logic directly into the embed configuration or event handlers, as these may introduce hidden circular references.
- Ensure that the embed logic only runs after the component view is fully initialized, in line with Angular lifecycle best practices.
- If you’re using a custom wrapper for the embedding logic, double-check for side effects or reused references that could be contributing to the problem.
If you've reviewed all the above and the issue still persists especially given that your stack trace points to Power BI SDK internals it would be a good idea to How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn This will allow the engineering team to investigate further and provide a more targeted resolution.
If this post helps, please give it a thumbs up Kudos and consider marking it as a solution so it can assist other community members as well.
Thank you for using the Microsoft Community Forum.
Hi KCChan,
Thank you for reaching out to the Microsoft fabric community forum. As a troubleshooting steps:
1) Double check your embedConfig object, make sure you're not passing DOM elements, events, Angular services, or anything with circular refs.
2) JSON doesn't accept circular objects - objects which reference themselves. You will get an error if you come across this.
3) Update to the latest Power BI-client or Power BI embed libraries, older versions may be more prone to logging these circular structures internally. Please check this article
Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn
Which talks about how to troubleshoot your embedded application.
Based on the images you shared, I feel you are using Angular. Please check this article:
How to embed Power BI content in an Angular app | Microsoft Learn
and see if you are doing any point incorrectly which may inadvertently cause an error.
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 KCChan,
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.