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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.