Forum Discussion
Power BI Custom Visual - Access to index.html denied
- Anonymous5 years ago
Not 100% sure, but I think the issue is a matter of package version compatibility. Unfortunately, XML is orphaned and installing older versions of it is hard. I solved it by migrating the rhtml visual from XML to xml2. There is a PR on the official MS Powerbi-Visual-Tools repo that has the modified flatten_HTML and dependencies.json files if anyone struggles with XML in the future. Feel free to comment on it and encourage the repo maintainers to review and merge it.
EDIT: To clarify, in my original post, I had installed the correct versions of packages I was explicitly using. XML is used to save the widget out into a Power BI compatible file, but installing versions besides the current release on Windows is bad. I spent about 12 hours total on it and tried 3 different methods - 2 almost worked, making it past the make phase and erroring out just past R's lazy load stage.
Is this issue resolved? I am having the same issues are mentioned in the original post. The Rhtml visual works fine in Power BI Desktop but it breaks when used in Power BI cloud/service.
I see the same error mentioned above.
ERROR ; "Error in shell.exec(url) : access to 'C:\Users\................../index.html' denied"
- Anonymous4 years agoNot applicable
Not as far as I know. I haven't been able to test, but I had a theory that it was the XML package version (was impossible to install the supported version, so it defaulted to the newest). I was able to patch it out with xml2 (possible to install supported version), submit the changes, and the official repo now uses xml2 as of July. Are you using a fresh/recent install of the visual tools? If you are and XML is nowhere to be seen in your installed packages, then that's insanely discouraging and the problem is elsewhere. I did speak w/ an official Power BI rep a few weeks ago who seemed confident that it is most likely an unsupported package version.