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

Custom Visual deployment

Hi.

 

I have created my custom visual. Added it to a report in  https://app.powerbi.com/ and debuged it there.

All ok.

 

Now it's time to add the visual to a report in PowerBI.

I created a package using pbiviz package.

Validating the package using pbiviz validate, all green, except warning  "New API version is used". 

Imports successfully the .pbiviz file into my report. 

My visual have a strange default image and my visuals custom properties are not there etc.

 

To eliminate potentials PowerBI desktop problem, I publish my report.

The report in app.powerbi.com is there, and my custom visual is just as weird as in PowerBi desktop.

 

I then edited the report. Removing my custom visual. And added the pbiviz file to the report in PowerBi.com. Also added the debug version.

Picture below shows the .pbiviz version on top, and the debug version below.

I'm kind of stuck on this one so I'll appreciate any help.

 

Thanks.

 


CustomVisual.jpg

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
C3 Frequent Visitor
Frequent Visitor

Re: Custom Visual deployment

Finaly found out why. 

You have to bind it to some value of the datasource, regardles if you use the datasource or not.

6 REPLIES 6
Moderator v-viig
Moderator

Re: Custom Visual deployment

Looks like data fields are not filled properly. Did you fill all of data fields?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

C3 Frequent Visitor
Frequent Visitor

Re: Custom Visual deployment

Not sure I understand you reply. Which data fields do you mean?

 

/Frode

C3 Frequent Visitor
Frequent Visitor

Re: Custom Visual deployment

This is strange.

Creating a brand new visual with these commands

pbiviz new stockVisual

cd stockVisual

pbiviz package

pbiviz start

No code is changed at all.

 

Opens powerBi.com and create a new report.

Adds the debug visual 

Adds a new visual from the package dist\stockVisual.pbiviz.

Below is the result.

The debug visual are on the left, the stockVisual.pbiviz are on the right.

Why does not the stockVisual.pbiviz work?

image.png

 

C3 Frequent Visitor
Frequent Visitor

Re: Custom Visual deployment

Finaly found out why. 

You have to bind it to some value of the datasource, regardles if you use the datasource or not.

michal089 Frequent Visitor
Frequent Visitor

Re: Custom Visual deployment

Is there any option to leave data fields empty and eventually remove dataRoles from capabilities.json ? I am working on a totally static visual that doesn't need any data besides that entered with objects (Format tab).

Moderator v-viig
Moderator

Re: Custom Visual deployment

No, it is not supported.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 6 members 3,116 guests
Please welcome our newest community members: