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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Why isn't my R visual working?

I created an R visual on Power BI desktop and I want to publish it now. I clicked 'Publish to Power BI' (I have a Pro license within our organisation) but  now I cannot see my visualisations. I am getting a ' Script Runtime Error' on app.powerbi.com. Worst of all, it seems that in this mode I can build/publish Python visuals but not R visuals. Any way forward?powerbi_error_reporting.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

In fact, when you design on desktop side, power bi not has any limitation on packages and functions that you used in r visual.  
After you publish to power bi service side, there are a few limitations for r scripts(e.g. execute time out, operations invoke external resources, access or edit operations to specify path...), you can take a look at below link about r script limitations and security:

Creating R visuals in the Power BI service#r-scripts-security 
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

In fact, when you design on desktop side, power bi not has any limitation on packages and functions that you used in r visual.  
After you publish to power bi service side, there are a few limitations for r scripts(e.g. execute time out, operations invoke external resources, access or edit operations to specify path...), you can take a look at below link about r script limitations and security:

Creating R visuals in the Power BI service#r-scripts-security 
Regards,

Xiaoxin Sheng

otravers
Community Champion
Community Champion

You (or someone who has Power BI admin rights in your tenant) needs to check that R Visuals are enabled:

https://docs.microsoft.com/en-us/power-bi/service-admin-portal#r-visuals-settings

 

If they are, and if your R visual works in Power BI Desktop, check that you're only using R packages that are supported in the service:

https://docs.microsoft.com/en-us/power-bi/service-r-packages-support#r-packages-that-are-supported-i...

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.