Forum Discussion
MartinSlaa
3 years agoFrequent Visitor
Publishing custom plotly animation gives an error
Hello! I'm just starting to learn about custom visuals and R-scripting in Power BI. I have created a very simple animation using plotly which works fine in Power BI desktop. However, when ...
dm-p
3 years agoSuper User
Hi MartinSlaa,
When developing locally, R visuals will use the instance of R on your machine. As such, this will be able to resolve a file path that exists on your file system.
When you use an R visual in the Service, Power BI delegates the execution to a separate instance hosted by MS. As such, this will not know about your machine, or the files on it.
If you want to access an external file, you will need to host this in a location that can be accessed over HTTP, with no CORS restrictions (as custom visuals are hosted in sandboxed iframes and have their origin removed by the main window for security reasons).
Hopefully some of this may help you diagnose the issue and resolve.
Daniel