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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Something Went Wrong: An error occurred while rendering this report

After the June 2019 Power BI Update, in some of the PBI reports I am getting the following error:

 

"Something Went Wrong: An error occurred while rendering this report" 

 

This error does not seem to effect the report when it is published to Power BI service though. 

Error.PNG

 

Here is the Error Log:

 

Feedback Type:
Frown (Error)

 

Error Message:
An error occurred while rendering the report.

 

Stack Trace:
TypeError: Cannot read property 'replace' of undefined
at convertHexToRGBComponents (ms-pbi://pbi.microsoft.com/minerva/scripts/powerbidesktopcommon.js:4487:31)
at Object.hexToRGBString (ms-pbi://pbi.microsoft.com/minerva/scripts/powerbidesktopcommon.js:4439:31)
at setImage (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreui.js:2901:206)
at Object.updateAndApplyBackground (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreui.js:2881:377)
at ExploreCanvasController.updateAndApplyCanvasOutspaceOrBackground (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreui.js:14035:43)
at ExploreCanvasController.resetThemableProperties (ms-pbi://pbi.microsoft.com/minerva/scripts/exploreui.js:13824:76)
at ms-pbi://pbi.microsoft.com/minerva/scripts/exploreui.js:13717:80
at Scope.$digest (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:18394:23)
at Scope.$apply (ms-pbi://pbi.microsoft.com/minerva/scripts/angular.js:18663:24)
at HTMLDivElement.<anonymous> (ms-pbi://pbi.microsoft.com/minerva/scripts/powerbidesktopcommon.js:17822:39)

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.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass0_1.<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__0(IWindowHandle owner)
at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_0.<Main>b__1()
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 property 'replace' of undefined

 

Model Default Mode:
Import

 

Snapshot Trace Logs:
C:\Users\h\Microsoft\Power BI Desktop Store App\FrownSnapShot441506825.zip

 

Performance Trace Logs:
C:\Users\h\Microsoft\Power BI Desktop Store App\PerformanceTraces.zip

 

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_NewWebTableInference
PBI_showIncrementalRefreshPolicy
PBI_showManageAggregations
PBI_improvedFilterExperience
PBI_qnaLiveConnect
PBI_keyDrivers
PBI_userFavoriteResourcePackagesEnabled

Disabled Preview Features:
PBI_SpanishLinguisticsEnabled

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The issue was with the custom JSON theme file I used in the PBI file. Once I modified the JSON file, I was not geeting the error anymore.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

I had this issue ever, just clicked "Cancel", it seemed to affect nothing. Or try to restart the Power BI Desktop.

 

If you still have this issue for Power BI, you can also create a support ticket in Power BI Support to get further help.

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

The issue was with the custom JSON theme file I used in the PBI file. Once I modified the JSON file, I was not geeting the error anymore.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.