Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
When I connect to my Snowflake data source and atttept to load data from a table I receive and error which states: A module named 'AzureCostManagement' hasn't been loaded. I receive this error when using the DEC 2021 version of PBI desktop. I am not having this issue using the OCT 2021 version on my VMware farm. Not sure what this is coming up. I have never used or even see anything to do with Azure Cost Management. Full error text is pasted below.
Feedback Type:
Frown (Error)
Error Message:
A module named 'AzureCostManagement' hasn't been loaded.
Stack Trace:
System.InvalidOperationException
at Microsoft.Mashup.Engine1.Library.Modules.GetLibrary(IEngineHost host, IEnumerable`1 additionalModules)
at Microsoft.Mashup.EngineHost.Services.LibraryInstance.MakeLibrary(IEnumerable`1 modules)
at Microsoft.Mashup.EngineHost.Services.LibraryService.LegacyLibraryInstance.get_CurrentLibrary()
at Microsoft.Mashup.Host.Document.DataSourceDiscovery.DataSourceDiscoveryVisitor..ctor(HashSet`1 moduleMemberFilter)
at Microsoft.Mashup.Host.Document.DataSourceDiscovery.DataSourceDiscoveryVisitor.FindDataSources(IEnumerable`1 documents, HashSet`1 moduleMemberFilter)
at Microsoft.PowerBI.Client.Windows.PowerBIQueryExtensions.TryDiscoverUniqueMashupSource(IEnumerable`1 queries, String& sourceType, String& sourceTypeDescription, Resource& resource)
at Microsoft.PowerBI.Modeling.Engine.Query.QueryResourceInfoCalculator.TryGetUniqueDirectQueryResourceInternal(IEnumerable`1 queries, IModelingQueryServices modelingQueryServices, Resource& resource)
at Microsoft.PowerBI.Client.Windows.DirectQueryImportProcessor.TryProcessImportedQueries(IEnumerable`1 input, DataImportDestination destination, IEnumerable`1& output)
at Microsoft.Mashup.Client.UI.Shared.DataImporter.ProcessImportedQueries(IEnumerable`1 importedQueries, DataImportDestination destination)
at Microsoft.Mashup.Client.UI.Shared.DataImporter.ImportNavigationSource(Query query)
at Microsoft.Mashup.Client.UI.Shared.DataImporter.OnGetPreviewResult(PreviewResult preview, Query query, String sourceID, String formulaTitle, Nullable`1 explicitImportDestination, Boolean isNewQuery, Boolean isFromEditor)
at Microsoft.Mashup.Client.UI.Shared.DataImporter.GetPreviewResult(Query query, String sourceID, String formulaTitle, Boolean isNewQuery, Boolean isFromEditor, Nullable`1 explicitImportDestination)
at Microsoft.Mashup.Client.UI.Shared.DataImporter.<>c__DisplayClass88_1.<OnQuerySettingsResolved>b__0()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
Stack Trace Message:
A module named 'AzureCostManagement' hasn't been loaded.
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__DisplayClass15_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.UIBlockingAwareExceptionHandler.HandleException(Exception e)
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
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.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_1.<Main>b__2()
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)
PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.100.684.0","ModuleName":"Microsoft.MashupEngine.dll","Component":"Microsoft.Mashup.Engine1.Library.Modules","Error":"System.InvalidOperationException","MethodDef":"GetLibrary","ErrorOffset":"102"}
Snapshot Trace Logs:
C:\Users\Owner\Microsoft\Power BI Desktop Store App\FrownSnapShot9e8ff27d-2cf8-4468-ab1b-bebe9daf4b56.zip
Model Default Mode:
Empty
Model Version:
PowerBI_V1
Performance Trace Logs:
C:\Users\Owner\Microsoft\Power BI Desktop Store App\PerformanceTraces.zip
Enabled Preview Features:
PBI_enableWebView2
PBI_sparklines
Disabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_SpanishLinguisticsEnabled
PBI_qnaLiveConnect
PBI_azureMapVisual
PBI_dataPointLassoSelect
PBI_compositeModelsOverAS
PBI_dynamicParameters
PBI_enhancedTooltips
PQ_WebView2Connector
PBI_useModernFormatPane
PBI_scorecardVisual
Disabled DirectQuery Options:
TreatHanaAsRelationalSource
Cloud:
GlobalCloud
PowerBIUserFeedbackServices_IsReported:
True
Formulas:
section Section1;
shared PVUNITALLOCMONTHDAY_VW = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
PELO_Database = Source{[Name="PELO",Kind="Database"]}[Data],
DBO_Schema = PELO_Database{[Name="DBO",Kind="Schema"]}[Data],
PVUNITALLOCMONTHDAY_VW_View = DBO_Schema{[Name="PVUNITALLOCMONTHDAY_VW",Kind="View"]}[Data]
in
PVUNITALLOCMONTHDAY_VW_View;
shared WORKORDER_VW = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
MARSWORX_Database = Source{[Name="MARSWORX",Kind="Database"]}[Data],
DBO_Schema = MARSWORX_Database{[Name="DBO",Kind="Schema"]}[Data],
WORKORDER_VW_View = DBO_Schema{[Name="WORKORDER_VW",Kind="View"]}[Data]
in
WORKORDER_VW_View;
shared COMPRESSOR_VW = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
MARSWORX_Database = Source{[Name="MARSWORX",Kind="Database"]}[Data],
DBO_Schema = MARSWORX_Database{[Name="DBO",Kind="Schema"]}[Data],
COMPRESSOR_VW_View = DBO_Schema{[Name="COMPRESSOR_VW",Kind="View"]}[Data]
in
COMPRESSOR_VW_View;
shared PVUNIT_VW = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
PELO_Database = Source{[Name="PELO",Kind="Database"]}[Data],
DBO_Schema = PELO_Database{[Name="DBO",Kind="Schema"]}[Data],
PVUNIT_VW_View = DBO_Schema{[Name="PVUNIT_VW",Kind="View"]}[Data]
in
PVUNIT_VW_View;
shared PVFACILITY_VW = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
PELO_Database = Source{[Name="PELO",Kind="Database"]}[Data],
DBO_Schema = PELO_Database{[Name="DBO",Kind="Schema"]}[Data],
PVFACILITY_VW_View = DBO_Schema{[Name="PVFACILITY_VW",Kind="View"]}[Data]
in
PVFACILITY_VW_View;
shared #"PVFACILITY_VW (2)" = let
Source = Snowflake.Databases("ember_main.canada-central.azure.snowflakecomputing.com","Compute_WH"),
PELO_Database = Source{[Name="PELO",Kind="Database"]}[Data],
DBO_Schema = PELO_Database{[Name="DBO",Kind="Schema"]}[Data],
PVFACILITY_VW_View = DBO_Schema{[Name="PVFACILITY_VW",Kind="View"]}[Data]
in
PVFACILITY_VW_View;
Hi @lwchin ,
Which data source do you get data from and which connection mode do you use?
Does the same issue occur when you open other pbix file which is created by the same Power BI desktop version.
A workaround seems to be:
1. First open PowerBI desktop
2. Open your pbix file from within a running PBI Desktop
Best Regards
Community Support Team _ polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |