Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I've encountered an issue with R visuals not being displayed once embedded on a website. The embedding is done using PBI API, on a website which handles authorization of users (to the best of my knowledge it's done with tokens but I do not handle web part). R visuals work correctly in PBI Service, yet even the simplest ones run into display error once embedded. The workspace is of course premium, the simple visuals refer just to ggplot2 library - to the best of my understanding, these R visuals should work correctly there yet they don't.
Is there some configuration for either API or website that can help fix that? Or else, why doesn't it work?
I'd appreciate your help as a I feel stuck.
Hi @katie_pbi,
We are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?
If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.
Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.
Thank you for your understanding and participation.
If your blocked on this and issue still persists, please consider raising a support ticket for further assistance.
To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Hi @katie_pbi
The possible cause of this error usually indicates permission issues, unsupported environment settings for R visuals, or limitations in execution within the embedded token or tenant.
For your case with R visuals working in Power BI Service but not after embedding via API on a website with token-based auth, Please check the following :
Confirm that the embedding token has the required permissions to execute R visuals in the report.
Ensure the Power BI workspace is assigned to a Premium capacity that supports R visuals.
Check your tenant settings and admin portal to verify that R visuals are enabled for your organization.
Use only supported R packages like ggplot2, and ensure scripts complete under 20 seconds.
Verify that the embedding method supports R visuals — avoid using "Publish to web" since it disables R visuals for security.
If limitations persist, consider exporting R visuals as static images and embed those instead as a workaround.
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi,
Thanks for you reply @grazitti_sapna !
I got a similar suggestion from Copilot but it didn't allow me to find a solution, just re-confirmed the visuals seem to comply with requirements. Like I wrote, these R visuals work correctly in PBI Service and are hosted in a premium capacity, so points 2 & 3 are already covered.
As for point 4 - my test visual is only a single value and ggplot2 lib - it cannot execute over 20 seconds. Security is handled with a token so it's also not 5.
Regarding 1 - the web devs added to the token "loadRVisuals: true" suggested by Copilot but it made no difference - do you have any other details from documentation? I haven't been ablo to find it at all.
Exporting as static images is what we do consider as a workaround but it is really not a solution of the problem and I still can't understand why these visuals do no work 😞
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.