cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JackSoderstrom
Helper I
Helper I

Error on Power Bi Desktop but not on Web Service

Following error is presented when running a custom visual in power bi desktop. After packaging the visual with "pviviz package" I am presented with 

 

BuildBuild

After inserting the visual into Power Bi Desktop(Version: 2.95.804.0 64-bit (July, 2021) it imports with no errors then when clicking on the "Format" tab to change options the program crashes and the error is

 

error on desktoperror on desktop

This visual works perfectly on the web service of power bi, I'm not sure what "hex.match" is referring to in my code as it is not used. Note: the last time this visualization had edits to it were 2 years ago. Im not sure if power bi desktop has changed crucial things to make this not work correctly.

1 ACCEPTED SOLUTION
JackSoderstrom
Helper I
Helper I

There were issues with my code. The lines that cause this issue have no correlation to the error.

View solution in original post

2 REPLIES 2
JackSoderstrom
Helper I
Helper I

There were issues with my code. The lines that cause this issue have no correlation to the error.

View solution in original post

RicoZhou
Community Support
Community Support

Hi @JackSoderstrom 

What kind of custom visual do you want ? According to your statement, you couldn't use visual format in Power BI Desktop, but in Service it works well. 

Latest version is 2.95.983.0. You can download the latest version of Power BI Desktop and try again.

Click here to download: Download

Error in your screenshot is hex.match is not a function. Please check your code, find hex in your code.

The error goes away if you explicitly convert to a string. Code looks like String(hex).match.

Here is a post with similar error like yours: JavaScript error: “val.match is not a function”

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

 

 

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.