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
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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.