cancel
Showing results for 
Search instead for 
Did you mean: 

Hierarchy Slicer - Unexpected Error

Getting the following error when clicking on the Hierarchy Slicer on a report in PBI Desktop

 

Feedback Type:
Frown (Error)

JS Error Message:
Cannot read property 'memberCount' of undefined

Error Message:
An error occurred while rendering the report.

Stack Trace:
TypeError: Cannot read property 'memberCount' of undefined
at HierarchySlicerWebBehavior.getChildFilters (https://visuals.azureedge.net/prod/legacy/HierarchySlicer1458836712039.js:1312:65)
at HierarchySlicerWebBehavior.getChildFilters (https://visuals.azureedge.net/prod/legacy/HierarchySlicer1458836712039.js:1309:57)
at HierarchySlicerWebBehavior.applyFilter (https://visuals.azureedge.net/prod/legacy/HierarchySlicer1458836712039.js:1233:45)
at HTMLDivElement.<anonymous> (https://visuals.azureedge.net/prod/legacy/HierarchySlicer1458836712039.js:1057:35)
at HTMLDivElement.__onclick (ms-pbi://pbi.microsoft.com/minerva/scripts/powerbi.common.externals.js:8520:18)
at ZoneDelegate.invokeTask (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:13140:189)
at Zone.runTask (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:13022:63)
at ZoneTask.invokeTask [as invoke] (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:13180:63)
at invokeTask (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:13729:68)
at HTMLDivElement.globalZoneAwareCallback (ms-pbi://pbi.microsoft.com/minerva/scripts/desktop.js:13739:60)

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.FeedbackErrorInfo..ctor(String message, Exception exception)
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__DisplayClass1.<HandleException>b__0()
at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass3.<SendAndMarshalExceptions>b__0(Object null)
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.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
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.WebDialogs.WebDialog.<>n__FabricatedMethod8(IWindowHandle )
at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.PowerBI.Client.Program.<>c__DisplayClassb.<Main>b__0()
at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass7.<HandleExceptionsWithNestedTasks>b__6()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at Microsoft.PowerBI.Client.Program.Main(String[] args)

 

Status: New
Comments
Moderator

Hi @kategrass,

 

Based on my tested in the Power BI desktop version 2.58.5103.501 and Hierarchy Slicer version 1.2.5.0, the Hierarchy Slicer works fine. Please update both your desktop and visual version to the latest version then test again. 

 

q3.PNG

 

Best Regards,
Qiuyun Yu