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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Map visual - error when moving map, "Cannot read properties of null (reading 'setMinZoom')"

There is an error that can arise in PowerBI version 2.121.903.0 64-bit (September 2023)

Map visual error when moving map, "Cannot read properties of null (reading 'setMinZoom')"

nick5990_0-1721821629400.png

Diagnostics output is below. Some of this was identified as HTML by the system and received notification "The invalid HTML has been removed".

Feedback Type:
Frown (Error)

Error Message:
An error occurred while rendering the report.

Stack Trace:
Javascript:TypeError
at u.setOptions (https://r.bing.com/rp/B8FCu48F1O8wGns_qMBVtcjHrvw.gz.js:1:83077)
at HTMLDivElement.<anonymous> (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:187122:116)
at ZoneDelegate.invokeTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:120515:193)
at hooked_1.invokeTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:506100:88)
at Object.onInvokeTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:591527:64)
at ZoneDelegate.invokeTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:120515:76)
at Zone.runTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:120397:67)
at ZoneTask.invokeTask [as invoke] (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:120553:67)
at invokeTask (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:121130:72)
at HTMLDivElement.globalZoneAwareCaptureCallback (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:121142:234)

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.PowerBIFormUnexpectedExceptionHandler.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__DisplayClass6_0.<RunApplication>b__0()
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.RunApplication(String[] args)
at Microsoft.PowerBI.Client.Program.Main(String[] args)


JS Error Message:
Cannot read properties of null (reading 'setMinZoom')

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.121.903.0","ModuleName":"https://r.bing.com/rp/B8FCu48F1O8wGns_qMBVtcjHrvw.gz.js","Component":"u","Error":"TypeError","MethodDef":"setOptions","ErrorOffset":"1:83077","ErrorCode":""}

Snapshot Trace Logs:
C:\Users\<omitted>\AppData\Local\Microsoft\Power BI Desktop SSRS\FrownSnapShotb4ea5249-8b9d-474c-a31e-99b02cd248bd.zip

Model Default Mode:
Import

Model Version:
PowerBI_V3

Performance Trace Logs:
C:\Users\<omitted>\AppData\Local\Microsoft\Power BI Desktop SSRS\PerformanceTraces.zip

Enabled Preview Features:
PBI_scorecardVisual
PBI_NlToDax
PBI_setLabelOnExportPdf
PBI_dynamicFormatString

Disabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_b2bExternalDatasetSharing
PBI_enhancedTooltips
PBI_sparklines
PBI_fieldParametersSuperSwitch
PBI_angularRls
PBI_onObject
PBI_oneDriveSave
PBI_oneDriveShare
PBI_gitIntegration
PBI_newCard

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

Cloud:
GlobalCloud

Recent Actions:
SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues, SaveFormattingValues

PowerBIUserFeedbackServices_IsReported:
True

Status: Needs Info
Comments
Anonymous
Not applicable

Hi  @nick5990 

Has this kind of error been reported before ? Is this your first time using map visual?  According to the error message, it is not possible to read properties with null values. Do you have null values in your data ? 

 

Best Regards,
Community Support Team _ Ailsa Tao

 

 

nick5990
Regular Visitor

Hi @Anonymous 

Has this kind of error been reported before?
- Google searches show some similar error messages but the ending is sligly different. Nothing recent in last year. 

Is this your first time using map visual?
- I am recently new to using it.

According to the error message, it is not possible to read properties with null values. Do you have null values in your data ? 
- SQL pseudocode used below - no records returned, so it appears no NULL data for those 2 fields used in the map visual.

SELECT
[ID]
,[Postcode for Date]
FROM [Source]
WHERE
[ID] IS NULL
OR [Postcode for Date] IS NULL

Definition of fields:
[ID] int NOT NULL
[Postcode for Date] varchar(16) NOT NULL

How data is being used:

nick5990_0-1721896095509.png