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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors