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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Vyk
Frequent Visitor

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
v-shex-msft
Community Support
Community Support

Hi @Vyk ,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Vyk ,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors