Forum Discussion
Power BI Custom Visual Error Embedded for Customers
- 1 year ago
Hi v-dineshya
Thanks for sharing the potential solutions.
Unfortunately, we have explored all the options but haven't had any luck.
We are currently working with the Microsoft support team to resolve this issue.
Note:
1. The custom visual was created using an R script.2. We faced a similar issue last year (September 2024) where the custom R visual worked fine in Power BI Service, Desktop, and Embedded for Organization, but not for customers. Microsoft eventually fixed it and stated that the issue was due to a bug in R script visuals.
Hi ejQap ,
Thank you for reaching out to the Microsoft Community Forum.
This error typically arises when a custom visual cannot be properly rendered in Power BI Embedded reports.
Few potential causes and things to check:
1. Power BI Service Changes: Microsoft occasionally updates the Power BI service backend, which can unintentionally break compatibility with some custom visuals, especially in embedded contexts. Since you didn’t make any updates, this is a likely cause.
Note: Check the Power BI support page or the Power BI community forum to see if others have reported similar issues recently.
2. Visual Capabilities or API Version: Even if the visual hasn't been modified, an outdated apiVersion or unsupported capability in your custom visual’s manifest can cause issues in Embedded scenarios.
Note: Double-check the pbiviz.json file of the custom visual. Ensure it uses a supported API version (ideally v3.8.0 or higher). Compare it with the latest custom visual guidelines: Custom Visual Guidelines –-> Microsoft Docs.
3. Token Issue: Sometimes token mismatches, authorization changes, or domain policy updates can affect how visuals are rendered in embedded environments (especially for customer-embedded reports).
Note: Confirm the access token being used is valid and scoped correctly. Check browser console logs for CORS or authentication-related errors. Make sure any Content Security Policy headers aren’t blocking resources.
4. Power BI Visual Configuration: There may be a configuration in your embedded report setup or iframe code that prevents certain custom visuals from initializing correctly.
Note: Check your embedded report iframe settings. Ensure loadCustomVisualsFromAppPackage or loadCustomVisualsFromExtension (depending on how you're embedding) is configured properly.
Can you please check official documents and community forum threads.
Organization visuals in Power BI - Power BI | Microsoft Learn
Power BI usage scenarios: Embed for your organization - Power BI | Microsoft Learn
Deep dive in the organizational custom visuals | Microsoft Power BI Blog | Microsoft Power BI
Solved: Custom visuals and embedding options - Microsoft Fabric Community
Solved: Custom Visuals not displaying in the Power BI Serv... - Microsoft Fabric Community
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you
Hi ejQap ,
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards