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.
I know this is an ancient thread, but has anyone found a solve for this issue? I am in the same exact situation, any help would be appreciated.
- Anonymous2 years agoNot applicable
It's been a *long* time, but I think my theory was right and I've marked it as the solution. The culprit was indeed the version of the XML package. The patch I submitted to switch to xml2 was merged in the summer of 2021 https://github.com/microsoft/PowerBI-visuals-tools/pull/342
There may now be a similar problem with the rhtml dependencies elsewhere as indicated by this PR: https://github.com/microsoft/PowerBI-visuals-tools/pull/488
I woud scrutinize what packages you have installed in your project and compare them to the supported versions in the Power BI Service: https://learn.microsoft.com/en-us/power-bi/connect-data/service-r-packages-supportMy XML package was one minor release higher than what was supported at the time IIRC
If you find that you have a package that isn't supported or a version that's too high, you'll need to remove and find a supported alternative or downgrade it respectively.If you can't, then I would either contact Power BI support or make an issue on github and attach a minimum-reproducible example so that the maintainers can quickly find the problem (help them help you).