Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Error Message - Unexpected error encountered when opening report in Power BI Desktop

Hi,

Am getting the following error, everytime I am trying to open any power bi report in Power BI Desktop.

JS Error Message:
Script error.

Error Message:
An error occurred while rendering the report.

Stack Trace:
Microsoft.Mashup.Host.Document.JavaScriptException: An error occurred while rendering the report.
   at :line 0

Invocation Stack Trace:
   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.ClientShared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace)
   at Microsoft.Mashup.Client.ClientShared.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.ClientShared.WindowManager.ShowDialog[T](T form, IWin32Window owner)
   at Microsoft.PowerBI.Client.Program.<>c__DisplayClassd.<Main>b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.PowerBI.Client.Program.Main(String[] args)

 

Has anyone faced this issue? Can you please help?

I have tried clearing Cache folder from Power BI...It is not working for me

  • Anonymous's avatar
    Anonymous
    9 years ago

    Mine is the same, so we could be onto a winner here.  I will sometimes get an error on tabs without the matrix visual too, but only in report files where i've used it.

     

    I might make a test file where i remove this visual and see if it fixes it.

  • Anonymous's avatar
    Anonymous
    9 years ago

    Nope that didn't fix it.  I've now gone to a tab, removed every visual and done a Save/Close.  Going to this tab has not spawned an error.  So i'll try removing visuals 1 at a time until i find it.

  • Anonymous's avatar
    Anonymous
    9 years ago

    Are you by any chance using a custom visual "Hierarchy Slicer"?  My error seemed to go away on the tab where i removed that visual.

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    I've been getting a similar error, but my reports continue to work.  I was concerned it might be a case of "I've written these reports in an earlier version and this newer one hates something".

     

    I should note that i'm using the Matrix visual, but the one previous to whats being used in the latest version.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Ross,

      I am facing the exact same issue.

      Initially my reports were built using Matrix Visuals which were in Preview Feature. Post July updates. I have incorporated few more tabs in the existing report, which contains the Matrix Visual.

      It was working all fine. Since yesterday, am getting the error everytime I open the report. Once I click on Close . The report works fine.

       

      When I publish it to app.power bi, i do not get any error.

      However, the users who will be using this report wants to access the report from Power BI Desktop.

      So am trying to figure out a way to solve the issue.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Mine is the same, so we could be onto a winner here.  I will sometimes get an error on tabs without the matrix visual too, but only in report files where i've used it.

         

        I might make a test file where i remove this visual and see if it fixes it.