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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

R Script Runtime Error in Power BI

Hi Support,

 

I created a PowerBI using the R Visual. The K-M plot displays fine on my desktop. I published it to app.powerbi.com and all other visuals display correct but the K-M Plot using R. I get this error:

 

Activity ID: [PII masked by MSFT]

Request ID: [PII masked by MSFT]

Correlation ID: [PII masked by MSFT]

Time: Sat Nov 02 2024 14:01:44 GMT-0500 (Central Daylight Time)

Service version: 13.0.24547.47

Client version: 2410.3.21423-train

Cluster URI: 

 

BTW, personal gateway already enabled.

 

Thanks.

2 ACCEPTED SOLUTIONS
shafiz_p
Super User
Super User

Hi @Anonymous 
Ensure that the R packages you are using in your script are supported by Power BI Service. Not all R packages available in Power BI Desktop are supported in the Power BI Service.

Power BI Service has a timeout limit for R script execution. If an R visual calculation exceeds 60 seconds, the script times out and displays an error.

 

Try simplifying your R script to the most basic version that still produces a plot. This can help identify if a specific part of the script is causing the issue.

 

Run your R script locally in RStudio or another R environment to ensure there are no errors. Sometimes, issues that don’t appear in Power BI Desktop can be caught in a local R environment.

 

Read the below articles for consideration and limitation:

https://learn.microsoft.com/en-us/power-bi/visuals/service-r-visuals#r-scripts-security 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals 

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

View solution in original post

SaiTejaTalasila
Super User
Super User

Hi @Anonymous ,

 

Please refer this and check whether the r package you are using is supported by power bi or not.

https://learn.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

 

Open a ticket with Microsoft support team for more details.

 

Thanks,

Sai Teja 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Did SaiTejaTalasila  and shafiz_p  responses solve your problem? If the problem has been solved you can mark the reply for the standard answers to help the other members find it more quickly. If not, please point it out.

 

Best Regards,

Neeko Tang

SaiTejaTalasila
Super User
Super User

Hi @Anonymous ,

 

Please refer this and check whether the r package you are using is supported by power bi or not.

https://learn.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

 

Open a ticket with Microsoft support team for more details.

 

Thanks,

Sai Teja 

shafiz_p
Super User
Super User

Hi @Anonymous 
Ensure that the R packages you are using in your script are supported by Power BI Service. Not all R packages available in Power BI Desktop are supported in the Power BI Service.

Power BI Service has a timeout limit for R script execution. If an R visual calculation exceeds 60 seconds, the script times out and displays an error.

 

Try simplifying your R script to the most basic version that still produces a plot. This can help identify if a specific part of the script is causing the issue.

 

Run your R script locally in RStudio or another R environment to ensure there are no errors. Sometimes, issues that don’t appear in Power BI Desktop can be caught in a local R environment.

 

Read the below articles for consideration and limitation:

https://learn.microsoft.com/en-us/power-bi/visuals/service-r-visuals#r-scripts-security 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals 

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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