Forum Discussion
R Script Runtime Error in Power BI
- 1 year ago
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 - 1 year ago
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
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