The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Feedback Type:
Frown (Error)
Timestamp:
2025-02-01T12:23:14.3886106Z
Local Time:
2025-02-01T17:53:14.3886106+05:30
Session ID:
0b15f340-d64d-42f5-9ff5-6853c6d4bb6a
Release:
December 2024
Product Version:
2.139.2054.0 (24.12)+334ca1c95b576cc53924655643b0d36f21caac55 (x64)
Stack Trace:
Javascript:NullInjectorError
NullInjectorError: NullInjectorError: No provider for InjectionToken ManagedCustomVisualsService!
at NullInjector.get (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567321:37)
at R3Injector.get (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567811:93)
at R3Injector.get (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567811:93)
at ChainedInjector.get (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:571259:165)
at lookupTokenUsingModuleInjector (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:568479:64)
at getOrCreateInjectable (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:568511:24)
at ɵɵdirectiveInject (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:569849:76)
at ɵɵinject (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567233:73)
at injectArgs (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567254:38)
at NodeInjectorFactory.factory (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js:567904:190)
PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.139.2054.0","ModuleName":"https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktopDataExplore.js","Component":"NullInjector","Error":"NullInjectorError","MethodDef":"get","ErrorOffset":"567321:37","ErrorCode":""}
OS Version:
Microsoft Windows NT 10.0.19045.0 (x64 en-US)
CLR Version:
4.8 or later [Release Number = 528372]
Peak Virtual Memory:
71 GB
Private Memory:
779 MB
Peak Working Set:
1.39 GB
IE Version:
11.3636.19041.0
User ID:
9aa77b25-cea7-435a-a55e-00dc034c442c
Workbook Package Info:
1* - en-IN, Query Groups: 0, fastCombine: Disabled, runBackgroundAnalysis: True.
Telemetry Enabled:
True
Model Default Mode:
Import
Model Version:
PowerBI_V3
Enabled Preview Features:
PBI_sparklines
PBI_scorecardVisual
PBI_fieldParametersSuperSwitch
PBI_setLabelOnExportPdf
PBI_oneDriveSave
PBI_oneDriveShare
PBI_useModernPublishDialogs
PBI_gitIntegration
PBI_directLakeRemoteModeling
PBI_newCard
PBI_buttonSlicerAuthoring
PBI_EimLessElevatedUser
PBI_mobileAutoReportLayout
PBI_daxInlineCopilot
PBI_aiNarrativesVisual
PBI_generateMeasureDescriptionsButton
PBI_visualCalculationsAuthoring
PBI_desktopReportAuthoringCopilot
Disabled Preview Features:
PBI_snowflakeAdbcVersionEnabled
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_metricsArtifactsOnDesktop
PBI_b2bExternalDatasetSharing
PBI_enhancedTooltips
PBI_onObject
PBI_odspSaveBackgroundUpload
PBI_modernOfficeFilePicker
PBI_publishDialogsSupportSubfolders
PBI_tmdlInDataset
PBI_enhancedReportFormat
PBI_advancedSlicerTypeList
PBI_textSlicer
PBI_qnaImproveLsdlCopilot
PBI_tmdlViewToggle
Disabled DirectQuery Options:
TreatHanaAsRelationalSource
Cloud:
GlobalCloud
DPI Scale:
150%
Supported Services:
Power BI
Hi, @mohit23121986
Based on the error information and stack traces provided, the issue appears to be caused by the InjectionToken ManagedCustomVisualsService in the Dependency Injection (DI) system not being properly provisioned or registered. Specifically, the error type is NullInjectorError, which means that Angular's dependency injection system can't find the appropriate provider when trying to inject ManagedCustomVisualsService. Because Power BI custom visuals are built on top of the Angular framework, understanding Angular's dependency injection mechanism can be helpful in troubleshooting such issues. You can check the following links:
v17.angular.io
There may be a lack of providers. ManagedCustomVisualsService may be a custom service or injection token, but is not properly registered as a provider in the current module or component. Or if the module is not imported, if the ManagedCustomVisualsService is provided in a specific module, but the module is not imported into the current module, this error will also occur.
Check the Power BI preview features. Because you're using the preview features of Power BI or have multiple preview features enabled, some features might have compatibility issues between different versions that cause the service to not initialize correctly. Try disabling some preview features that may be related to ManagedCustomVisualsService and see if the issue is resolved. In particular, features related to custom visuals, such as PBI_visualCalculationsAuthoring and PBI_desktopReportAuthoringCopilot, can affect the initialization of the service.
You can also review the log files for Power BI, which may provide more details about the error. You can check the following links:
Power BI Desktop diagnostics collection - Power BI | Microsoft Learn
Power BI known issues and troubleshooting - Power BI | Microsoft Learn
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .