Forum Discussion

Tina_CSS's avatar
Tina_CSS
Regular Visitor
7 years ago
Solved

R Visual not working in PBI services

Hi everyone, I created R visual in desktop (as a custom visual!), it works perfectly and once I've tried to publish it to services it gives me this error below...I have no idea what to do, I've tr...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi Tina_CSS ,

    I'd like to suggest you to take a look at below document about use r script in power bi service:

    Creating R visuals in the Power BI service#r-scripts-security

     

    Spoiler

    R visuals are created from R scripts, which could potentially contain code with security or privacy risks.

    These risks mainly exist in the authoring phase when the script author run the script on their own computer.

    The Power BI service applies a sandbox technology to protect users and the service from security risks.

    This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as accessing the Internet, or accessing to other resources that are not required to create the R visual.

    For security reasons, some of r script functions has been blocked on power bi service side.(e.g. access external datasource, write/access to specific folder path, import/export file...) 

    BTW, r script code with functions you not defined clearly or too complex to calculate(execute over 60s) also not works on service side.(such as, functions with undefined option parameters, undefined clearly data type, complex looping calculation...)
    Notice: you can also check following link to confirm your packages are available on power bi service side:

    R packages in the Power BI service

     

    Regards,

    Xiaoxin Sheng