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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Prashanth13
Regular Visitor

Power BI Service R Script Runtime error

Hi Support,

 

My R visual created using package tidyverse version 1.2.1, it was in list of supported packages and it was running absolutely fine in desktop but it is giving an error 'Script Runtime error' in Service.

 

Rscript from PowerBi Desktop:

library(tidyverse)
ggplot(dataset, aes(x=studyday, y=NumericValue, color=Subject)) +
  geom_point() +
  geom_line() + guides(fill="none", color="none")
 
Request you to please help. Thanks!
1 ACCEPTED SOLUTION
Prashanth13
Regular Visitor

In the R Visual code, there are few step calculations steps before the GGplot, I have removed it and did those steps in power query data transformation, Then it worked, i was able to see the R Visual graph in both desktop and service.

View solution in original post

5 REPLIES 5
Prashanth13
Regular Visitor

In the R Visual code, there are few step calculations steps before the GGplot, I have removed it and did those steps in power query data transformation, Then it worked, i was able to see the R Visual graph in both desktop and service.

Prashanth13
Regular Visitor

Hi IBendlin,

 

I dont think the issue here is related to personal gateway or refresh because I was able see other reports and visuals, only this particular R Visual is not working, giving an error 'Script Runtime error'.

 

Thanks

Prashanth13
Regular Visitor

Hi, Thanks for the response.

This is first time I am trying to get it in Power BI Service. I got the data using Web. what do you meanby using personal gateway?

I am using R 4.4.1 version on my desktop, Should I switch to Older version?

Create advanced analytics and visualizations using R scripts - Power BI | Microsoft Learn

 

Note the limitations section.

 

If you want to refresh the semantic model in the Power BI service you need to use a personal gateway.

lbendlin
Super User
Super User

Did it work before? Are you using a Personal Gateway?

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors