Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Shr_18
Frequent Visitor

Getting error while packaging a visual

Hey guys 

 

I am trying to package a visual for power BI ( i have made some changes in code in a visual available on appsource), and i am getting this error. Please help what to do:

 

The PowerBI-visuals.d.ts in your tsconfig.json must match the api version in pbiviz.json (expected: .api/v2.1.0/PowerBI-visuals.d.ts)

 

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

Try npm install and npm run package to build a pbiviz package for Pulse Chart.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

16 REPLIES 16
shubham006t
New Member

I am getting an error while packaging which says the following:

error Author name is not specified
error Author e-mail is not specified
error The visual description is not specified
error supportUrl is not specified

Hey @shubham006t ,

I guess long shot after so many years, but how did you tackle the issue? Thanks in advance!

Best,
Ioannis

Anonymous
Not applicable

I'm also facing the same error, if it's resolved for you can you please share the solution.

Thanks.

v-viig
Community Champion
Community Champion

Please align api version in pbiviz.json, .api and tsconfig.json to resolve the issue.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

Hi Ignat,

 

Thank you for reply to the issue. I understand that the API version needs to be the same and API version in all the three files is actually same i.e. v2.1.0. I do not know why this error keeps on coming up though. Will have a look again, trying from past 2 days on the same error. 

 

Thanks & regards

v-viig
Community Champion
Community Champion

You can share the code so we can help you to find a root cause of this issue.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

Sure Ignat,

 

The GitHub repo for the code is https://github.com/Microsoft/powerbi-visuals-pulsechart.git.

 

Thank you very much for your help. Have tried other ways too and can package other visual codes similar to this this one but not sure what is the problem with this code.

 

Thank you very much for your help.

 

Regards

v-viig
Community Champion
Community Champion

Try npm install and npm run package to build a pbiviz package for Pulse Chart.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

Hey Ignat,

 

Thanks a ton. 

I was able to package the visual files with that command, Though the pulse chart source code from GitHub is quite corrupted probably so cant apply on that. This command works fine with every other source code though.

 

Can you guide me as in where do we write the code for the "Dont summarize" summarisation option we put in data roles for the power BI visuals. 

 

dont summarise.JPG

 

 

Thanks 

v-viig
Community Champion
Community Champion

Don't summarize option can be turn on by using GroupingOrMeasure instead of Measure.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

Hi Ignat,

 

I tried to put "GroupingOrMeasure" in the data role declaration "kind" in the capabilities.json file but it doesnt changed the options either.  

enhanced scatter.JPGdont summarise no.JPG

 

I tried reading the code for other visuals and opened capabilities.json file and checked and it had "kind" as only "Measure" but still the "Don't Summarize" option was appearing in the power BI desktop.

 

scatter chart.JPGdont summarise yes.JPG

 

Can you guide me what am i missing to do.

v-viig
Community Champion
Community Champion

Do you or don't you want to support "Don't summarize" option?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

I want it to support !

v-viig
Community Champion
Community Champion

GroupingAndMeasure is supposed to resolve this issue.

 

Can you share the code to check this issue from our side?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Shr_18
Frequent Visitor

Hi Ignat,

 

That would be so supportive of you.

 

This is the repo of "Enhanced Scatter" visual for which i am asking about.

https://github.com/Microsoft/powerbi-visuals-enhancedscatter 

 

It does not show the "Dont Summarise" options for its data roles " X Axis" and "Y axis". Most probabaly i need that in " X axis". 

I know that this also depend on the data field type but the same data field when used with scatter chart(Default visual) in Power BI desktop, it does show the "Dont summarise" option.

 

What happens is when you put any data against a categorical data like observe against months etc, it treats everything as numeric data and asks to choose either "First, last, count or count(distinct)". This is not possible for categorical data. 

 

I would be very glad if you can have a look and guide me.

 

Thanks in advance.

Best Regards

v-viig
Community Champion
Community Champion

Please change type to GroupingOrMeasure.

 

image.png

 

After that, you will be able to select "Don't summarize".

 

image.png

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.