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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YunJ
Post Prodigy
Post Prodigy

Show error when changing the style of the matrix

Hi,

 

When I change the matrix style, it shows error:

1.png2.png3.png

 

When I click "copy details to clipboard", it shows as following.

 

Feedback Type:
Frown (Error)

Error Message:
An error occurred while rendering the report.

Stack Trace:
Microsoft.PowerBI.Client.Windows.JavaScriptException
at clearStylePresetDefinedProperties (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreUIShell.js:6297:87)
at Object.saveVisualProperty [as save] (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreUIShell.js:6288:94)
at ms-pbi://pbi.microsoft.com/minerva/scripts/exploreUIShell.js:7387:47
at UndoRedoStack.register (ms-pbi://pbi.microsoft.com/minerva/scripts/explore.js:17639:163)
at UndoRedoService.register (ms-pbi://pbi.microsoft.com/minerva/scripts/explore.js:17599:52)
at UndoRedoService.register (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:49557:39)
at PropertyPaneController.save (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreUIShell.js:7386:250)
at fn (eval at compile (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:16508:15), <anonymous>:4:311)
at PropertyCardController.destination.<computed> [as cardChanged] (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:11497:22)
at PropertyCardController.sliceChanged (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreUIShell.js:7240:127)

Stack Trace Message:
An error occurred while rendering the report.

Invocation Stack Trace:
at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass15_0.<HandleException>b__0()
at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>

 

However, I tried my other pbix file, the style can be changed. Both of them are in the same version:

4.png

 

Thanks a lot for your time.

Yun

 

1 ACCEPTED SOLUTION
YunJ
Post Prodigy
Post Prodigy

I know how to solve this. It is because I used the customized theme. 

First, change to default theme, and change style to another one not the default one (Yes, it will work.).

Second, change to the theme you want, and you can change style at this time.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

It works when you turn on the background for the matrix. Than you can change the syle to None, and turn off the background again. Its a bit janky but it works... 🙂

YunJ
Post Prodigy
Post Prodigy

I know how to solve this. It is because I used the customized theme. 

First, change to default theme, and change style to another one not the default one (Yes, it will work.).

Second, change to the theme you want, and you can change style at this time.

YunJ
Post Prodigy
Post Prodigy

I found the reason is the theme I used. I choosed a customized theme from gallery. If I change the theme to the default one, the style can be changed. 

 

But I still want to use my current theme, how can I fix this...?

YunJ_0-1630479679066.png

 

Anonymous
Not applicable

Thanks for this post! This has been slowly driving me insane the last months.

That's a bit of a hackety workaround, but I'm happy that it works!

mussaenda
Super User
Super User

Hi @YunJ,

 

I also experienced this. I thought I installed the Power BI incorrectly so I uninstalled,

redownloaded the file and installed it again.

 

Now it works fine.

Hope this helps.

 

I tried but still failed...:(

amitchandak
Super User
Super User

@YunJ , someone else seems to have a similar issue https://community.powerbi.com/t5/Desktop/Error-Cannot-read-property-stylePreset-of-undefined/m-p/205...

 

Log an issue : https://community.powerbi.com/t5/Issues/idb-p/Issues

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.