Forum Discussion
R Visual not working in PBI services
- Anonymous7 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
SpoilerR 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
Yup I'm getting the same error message, agree with the above comments, if it works on desktop it should work on service