cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
User100 Frequent Visitor
Frequent Visitor

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 Smiley Happy

 

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!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Why do custom visuals need a network connection?

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?


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


15 REPLIES 15
Super User
Super User

Re: Why do custom visuals need a network connection?

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?


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


Super User
Super User

Re: Why do custom visuals need a network connection?

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



Did I answer your question? Mark my post as a solution!

"Proud to be a Datanaut!"
v-ljerr-msft Super Contributor
Super Contributor

Re: Why do custom visuals need a network connection?

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.Smiley Happy

 

Regards

User100 Frequent Visitor
Frequent Visitor

Re: Why do custom visuals need a network connection?

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-msft Super Contributor
Super Contributor

Re: Why do custom visuals need a network connection?

@User100

 

The fix for it will be available in the October Desktop release. Please check it later in the next version.

 

Best Regards,

Herbert

liewgm Frequent Visitor
Frequent Visitor

Re: Why do custom visuals need a network connection?

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-msft Super Contributor
Super Contributor

Re: Why do custom visuals need a network connection?

@liewgm

 

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

liewgm Frequent Visitor
Frequent Visitor

Re: Why do custom visuals need a network connection?

Thanks Herbert.

 

I have reverted to version 2.37 for now.

 

Regards

Highlighted
v-haibl-msft Super Contributor
Super Contributor

Re: Why do custom visuals need a network connection?

Hi All,

 

This fix was not included in the October Desktop Release, and it will be available in the November Desktop Release. Please check it later.

 

Best Regards,

Herbert