Forum Discussion
Why do custom visuals need a network connection?
Try this.
1) Create a PowerBI desktop document with at least 1 custom visualization.
2) Save it.
3) Close PowerBI.
4) Turn-off your network connection.
5) Launch the previously created PowerBI file saved in step 2.
6) You'll get an error with "Send a frown" (except you don't have a network connection so you can't send a frown :)
The most obvious solution is to turn your network connection back on. However, if you're in a location (like I was) that didn't have ANY network connectivity my custom visuals didn't appear, so no demo was possible. The standard visuals that ship with PowerBI appear but not the custom ones.
Why do custom visuals need a network connection?
Thanks!
Hmm, I wonder if it is not that custom visuals necessarily require an Internet connection but that a lot of custom visuals utilize external libraries like JQuery, etc. that are perhaps referenced versus embedded in the code?
15 Replies
- liewgmFrequent Visitor
Hi everyone,
I ran a quick test using the latest Nov 16 version (version 2.41).
Custom visuals with no internet connection.
Seems to be working fine at my end. Did you all get the same result?
@Herbert: thanks for the help.
- dchissickNew Member
This is NOT working with version 2.41.4581.361.
Custom Visuals can be imported but do not appear and cannot be used if the computer is not connected to the internet.
- Greg_DecklerCommunity Champion
Hmm, I wonder if it is not that custom visuals necessarily require an Internet connection but that a lot of custom visuals utilize external libraries like JQuery, etc. that are perhaps referenced versus embedded in the code?
- User100New Member
Your response appears to be correct.
I intentionally generated this error and looked into the error details that PowerBI provides. The stack trace is below. It's getting external .JS files.
From a users perspective, these files could likely be cached locally so that a network connection isn't needed, although, I'm not sure how often this case occurs.
-----
Stack Trace:
Microsoft.Mashup.Host.Document.JavaScriptException: An error occurred while rendering the report.
TypeError: Cannot set property 'LongTextViewer1453740445633' of undefined
at ApprovedResourceService.removeApprovedResource (ms-pbi://pbi.microsoft.com/minerva/scripts/VisualHostCore.js:147:44)
at ms-pbi://pbi.microsoft.com/minerva/scripts/VisualHostCore.js:217:115
at processQueue (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:15757:28)
at ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:15773:27
at Scope.$eval (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:17025:28)
at Scope.$digest (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:16841:31)
at ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:17064:26
at completeOutstandingRequest (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:5824:10)
at ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:6100:7-----
Thanks!
- v-haibl-msftMicrosoft Employee
The fix for it will be available in the October Desktop release. Please check it later in the next version.
Best Regards,
Herbert
- GilbertQSuper User
From what I understand the custom visuals need to talk to the Power BI APIs in order for them to render. And based on what you detailed below it would work out perfectly as to what you explained with no internet connection.
It would appear that it is by design for Custom Visuals to have an internet connection. This is just what I have experienced with Custom Visuals, where I know in the past at times some have taken a while to load, and the explanation from Microsoft was due to it communicating with the Power BI APIs
- v-ljerr-msftMicrosoft Employee
Hi User100,
I have reproduced this issue in my environment. I will report this issue internally, and update here once I get any feed back.:smileyhappy:
Regards
- liewgmFrequent Visitor
Hi,
This issue is flagged as 'Solved' but we are still encountering it. After upgrading Power BI Desktop from 2.37 (July 16 update) to 2.40 (Oct 16 update), all custom visuals fail to load. We are behind company firewall, so no internet connection is possible. We have tested with the latest custom visuals from the gallery.
Anyone facing this as well? Thanks.
- v-haibl-msftMicrosoft Employee
I’ve also observed that the fix is not working. I’ve reported it again and will keep an eye on it.
Best Regards,
Herbert
- liewgmFrequent Visitor
Thanks Herbert.
I have reverted to version 2.37 for now.
Regards