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.
Hi, Anonymous ,
If it's a powerbi custom visual by r in html, there is a file named [flatten_HTML.r] in the repo, you can check whether the code in it may cause inconsistency of forward and backward slashes. Maybe the problem lies in this file.
Mark this post as solution if this helps, thanks!
- Anonymous5 years agoNot applicable
After poring over it for a bit, it doesn't look like the flatten_HTML file is the culprit, but it's hard to be sure. If it was, I guess there'd be at least a few dozen people with the same problem since it's from the MS repo.