cancel
Showing results for 
Search instead for 
Did you mean: 

Show error when changing the matrix style

Hi,

 

When I change the matrix style, it shows error:

YunJ_0-1630468072070.png

 

YunJ_1-1630468072142.png

 

YunJ_2-1630468072207.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:

YunJ_3-1630468071773.png

 

 

Thanks a lot for your time.

Yun

Status: New
Comments
v-yingjl
Community Support

Hi @YunJ ,

Could not reproduce it in my side as far as my test, it seems works fine when changing the matrix style.

 

You can try to open this report in some other times and change the style to check whether it is a temporary issue or not since other reports work fine in current version of Power BI Desktop.

 

Best Regards,
Community Support Team _ Yingjie Li

 

 

YunJ
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.

jkadilak
Frequent Visitor

Thanks @YunJ!  Your fix suggestion worked for me.

 

For the Power BI support folks:

I have been experiencing this same issue when I attempt to select a different option from the Style drop-down for a table or matrix visual. It has occurred on both the PBI Desktop 12/21/2021 release and the PBI desktop 1/10/2022 release.

 

jkadilak_0-1641992401456.png

 

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.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
at Microsoft.PowerBI.Client.PowerBIUnexpectedExceptionHandler.HandleException(Exception e)
at Microsoft.PowerBI.Client.Windows.Utilities.UIBlockingAwareExceptionHandler.HandleException(Exception e)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.InvokeCs(InteropCall call)
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_1.<Main>b__2()
at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at Microsoft.PowerBI.Client.Program.Main(String[] args)


JS Error Message:
Cannot read properties of undefined (reading 'stylePreset')

 

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.100.1182.0","ModuleName":"https://ms-pbi.pbi.microsoft.com/minerva/scripts/exploreUIShell.js","Component":"","Error":"TypeError","MethodDef":"clearStylePresetDefinedProperties","ErrorOffset":"6069:87"}

 

Model Default Mode:
Import

Model Version:
PowerBI_V3