Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
VanillaNitroPep
New Member

R Visual issue- Visual Can not be rendered

I am encountering an issue with my R visual. It works perfectly fine on my desktop—there are no errors in the R script, and the dataset is relatively small (just 505 rows). However, after publishing, the visual fails to render, displaying a "cannot be rendered" message.

I have thoroughly searched online for solutions but have not found anything helpful. Since the script itself runs without errors locally, I am uncertain what could be causing the rendering failure after publication. Any insights or suggestions would be greatly appreciated.

VanillaNitroPep_0-1748632242032.png

 

1 ACCEPTED SOLUTION
v-kpoloju-msft
Community Support
Community Support

Hi @VanillaNitroPep,

Thank you for reaching out to the Microsoft fabric community forum. Additionally, thank you to @Deku, for his input regarding this issue. I have identified several alternative workarounds that may assist in resolving the thread.

Based on the error message and the information you've provided, it appears you are encountering a known limitation with R visuals in Power BI Service, particularly when using DoD or US Government cloud tenants (as indicated by your .mil cluster URI). Please consider the following key points.

Potential Cause: The Power BI Service, particularly in GCC High or DoD environments, frequently does not support R visuals due to security restrictions. Even in supported environments, only a limited number of R packages are available. Furthermore, R scripts in the Power BI Service are subject to a 20-second execution timeout.

Please confirm with your Power BI administrator if R visuals are permitted in your tenant. If they are: Use only supported R packages (such as ggplot2, dplyr, scales) and simplify your R script to execute within 20 seconds.

If R visuals are not supported: As an alternative, export your R visual as a static image (PNG) using a tool like RStudio and embed it in Power BI using the Image visual.

Kinly refers to the below following documentation links for better understanding:
Create advanced analytics and visualizations using R scripts - Power BI | Microsoft Learn
Learn which R packages are supported - Power BI | Microsoft Learn

Also please refer to the below solved thread which is useful:
Solved: Re: r visual not displaying in Power BI service - Microsoft Fabric Community

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 the Microsoft Community Forum.

View solution in original post

5 REPLIES 5
v-kpoloju-msft
Community Support
Community Support

Hi @VanillaNitroPep,

Thank you for reaching out to the Microsoft fabric community forum. Additionally, thank you to @Deku, for his input regarding this issue. I have identified several alternative workarounds that may assist in resolving the thread.

Based on the error message and the information you've provided, it appears you are encountering a known limitation with R visuals in Power BI Service, particularly when using DoD or US Government cloud tenants (as indicated by your .mil cluster URI). Please consider the following key points.

Potential Cause: The Power BI Service, particularly in GCC High or DoD environments, frequently does not support R visuals due to security restrictions. Even in supported environments, only a limited number of R packages are available. Furthermore, R scripts in the Power BI Service are subject to a 20-second execution timeout.

Please confirm with your Power BI administrator if R visuals are permitted in your tenant. If they are: Use only supported R packages (such as ggplot2, dplyr, scales) and simplify your R script to execute within 20 seconds.

If R visuals are not supported: As an alternative, export your R visual as a static image (PNG) using a tool like RStudio and embed it in Power BI using the Image visual.

Kinly refers to the below following documentation links for better understanding:
Create advanced analytics and visualizations using R scripts - Power BI | Microsoft Learn
Learn which R packages are supported - Power BI | Microsoft Learn

Also please refer to the below solved thread which is useful:
Solved: Re: r visual not displaying in Power BI service - Microsoft Fabric Community

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 the Microsoft Community Forum.

Hi @VanillaNitroPep,

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.

Hi @VanillaNitroPep,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Hi @VanillaNitroPep,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

Deku
Community Champion
Community Champion

"In the service, not all of the R packages are supported"

 

https://learn.microsoft.com/en-us/power-bi/visuals/service-r-visuals

 

Check to see if the packages you are using are supported. Additional see if you are not falling foul of any of the other limitations 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.