Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

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 g...
  • shafiz_p's avatar
    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