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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Error adding a custom icon to a button

I'm on the March 2022 verson, Version: 2.103.661.0 64-bit (March 2022).  I've started getting errors when I try to add a custom icon to a Button "An error occurred while rendering the report"

SeanMcLarty_0-1648103256538.png

 

Status: Accepted

Hi @SeanMcLarty ,

 

I can repro this issue if I add a custom image or icon to a button when disabling New Format Pane. If do this operation with New Format Pane enabled, no such error pops out. Also, I have reported it internally(ICM 297647475). Will sync here once there is any update. Thanks for your understanding!

 

Best Regards,

Community Support Team _ Caiyun

Comments
v-cazheng-msft
Community Support
Status changed to: Accepted

Hi @SeanMcLarty ,

 

I can repro this issue if I add a custom image or icon to a button when disabling New Format Pane. If do this operation with New Format Pane enabled, no such error pops out. Also, I have reported it internally(ICM 297647475). Will sync here once there is any update. Thanks for your understanding!

 

Best Regards,

Community Support Team _ Caiyun

v-cazheng-msft
Community Support

Hi @SeanMcLarty ,

 

May I know you still have this issue? Due to the suddenly automation fix of this issue at my side, the investigation has been sucked. If you still have such of problem, could you please copy and paste the error details here if you still have this issue? Thanks in advance!

vcazhengmsft_0-1649406723858.png

 

Best Regards,

Community Support Team _ Caiyun

SeanMcLarty
Advocate I

Hi @v-cazheng-msft ,

 

I'm still on the same March 2022 version.  I can confirm that the same error still occurs with New Format Pane turned off.  As you suggested, the error does not occur with New Format Pane turned on.

Kind Regards,

Sean

v-cazheng-msft
Community Support

Hi @SeanMcLarty ,

 

Thanks for your reply! Please try this newly released Desktop to see whether you will still get this issue when enabling New format Pane. Thanks in advance!

 

Newly released Desktop(version: 2.103.881.0) from Microsoft Download Center: Download Microsoft Power BI Desktop from Official Microsoft Download Center

 

 

Best Regards,

Community Support Team _ Caiyun

SeanMcLarty
Advocate I

Hi @v-cazheng-msft ,

 

Still the same, the release you gave me requested I did a repair so I chose that option.  I also rebooted.

 

 The error occurs with old format pane.  I get no error with new format pane.   I'm using some 3rd party visuals which are incompatible with the new format pane which is why I'm using the old format pane.

 

Kind regards,

Sean

v-cazheng-msft
Community Support

Hi @SeanMcLarty ,

 

Thanks for your reply! Could you please copy and paste the error details in the popped window so I could deliver it to the product group for further investigation? Thanks in advance!

vcazhengmsft_0-1649752861989.png

 

Best Regards,

Community Support Team _ Caiyun

SeanMcLarty
Advocate I

Hi @v-cazheng-msft,

 

Here's the error details, I hope it helps:

 

Feedback Type:
Frown (Error)

Error Message:
An error occurred while rendering the report.

Stack Trace:
Javascript: TypeError
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1267:32)
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1267:14)
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1267:14)
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1251:16)
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1267:14)
at equals (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:1251:16)
at Scope.$digest (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:19224:31)
at Scope.$apply (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:19599:24)
at Object.$$debounceViewValueCommit (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:30999:20)
at Object.$setViewValue (https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js:30973:12)

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__DisplayClass14_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:
Illegal invocation

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.103.881.0","ModuleName":"https://ms-pbi.pbi.microsoft.com/minerva/scripts/angular.js","Component":"","Error":"TypeError","MethodDef":"equals","ErrorOffset":"1267:32"}

Snapshot Trace Logs:
C:\Users\XXXXXXX\AppData\Local\Microsoft\Power BI Desktop\FrownSnapShotcdcfdb47-fdee-421a-ad06-d19eb7c8bb42.zip

Model Default Mode:
Empty

Model Version:
PowerBI_V1

Performance Trace Logs:
C:\Users\XXXXXX\AppData\Local\Microsoft\Power BI Desktop\PerformanceTraces.zip

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_azureMapVisual
PBI_dataPointLassoSelect
PBI_compositeModelsOverAS
PBI_dynamicParameters
PBI_enhancedTooltips
PBI_enableWebView2
PQ_WebView2Connector
PBI_mobileAuthoringFormattingUI
PBI_sparklines
PBI_scorecardVisual

Disabled Preview Features:
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_useModernFormatPane
PBI_lineChartError

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

Recent Actions:
AddVisualContainerActionButton, SavePropertyPane, SavePropertyPane

PowerBIUserFeedbackServices_IsReported:
True

Formulas:


section Section1;

Active Section Contract:
{"id":0,"name":"ReportSection","displayName":"Page 1","filters":"[]","ordinal":0,"visualContainers":[{"x":0,"y":0,"z":0,"width":100,"height":40,"config":{"name":"51042cada150aa1b7ba9","layouts":[{"id":0,"position":{"x":0,"y":0,"width":100,"height":40,"z":0}}],"singleVisual":{"visualType":"actionButton","drillFilterOtherVisuals":true,"objects":{"icon":[{"properties":{"shapeType":{"expr":{"Literal":{"Value":"'custom'"}}},"image":{"image":{"name":{"expr":{"Literal":{"Value":"'Blue circle 56x56.png'"}}},"url":{"expr":{"ResourcePackageItem":{"PackageName":"RegisteredResources","PackageType":1,"ItemName":"Blue_circle_56x568802701426624275.png"}}},"scaling":{"expr":{"Literal":{"Value":"'Normal'"}}}}}},"selector":{"id":"default"}}]}}},"filters":"[]"}],"config":{},"displayOption":1,"width":1280,"height":720}

 

v-cazheng-msft
Community Support

Hi @SeanMcLarty ,

 

Thank you very much!

 

Best Regards,

Community Support Team _ Caiyun

v-cazheng-msft
Community Support

Hi @SeanMcLarty ,

 

According to the reply from product group, this issue should be fixed in the newly released Power BI Desktop(Version: 2.104.702.0, April 2022). Could you please try it and confirm whether this issue is resolved with it? Thanks in advance!

 

Link of newly released Power BI Desktop: Download Microsoft Power BI Desktop from Official Microsoft Download Center

 

Best Regards,

Caiyun Zheng

SeanMcLarty
Advocate I

Hi @v-cazheng-msft,

 

I can confirm it's fixed in the April release.  Thank you for taking care of this so promptly.

 

Kind Regards,

Sean