Closed plorenc closed 1 week ago
I really like your function, but I think it could use a bit more flexibility in how it's called. What do you think? What if we want to skip a semantic model with a given name only in one Workspace and not in others? Wouldn't a structure like {"Workspace1": ["dataset1", "dataset2" ...], "Workspace2": None} be more appropriate, where both the Workspace list of datasets could take the value None? If you want I can help with the solution.
⌛ Collecting Model BPA stats for the 'PL_SQL_Database' semantic model within the 'Sandbox_PL' workspace.
🔴 Model BPA failed for the 'PL_SQL_Database' semantic model within the 'Sandbox_PL' workspace.
An error occurred when running AdomdCommand. AdomdCommandActivityId: '158bd7f3-5af6-4f5f-9f68-bd205a9b57bf'
Caused by AdomdErrorResponseException:
The database is empty. The DISCOVER_CALC_DEPENDENCY operation cannot be performed on an empty database.
Technical Details:
RootActivityId: 74752382-3496-400e-8c41-c8182a01608c
Date (UTC): 11/10/2024 9:50:03 AM
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.CheckForSoapFault(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.CheckForError(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.ExecuteStatement(String statement, IDictionary connectionProperties, IDictionary commandProperties, IDataParameterCollection parameters, Boolean isMdx)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.IExecuteProvider.ExecuteTabular(CommandBehavior behavior, ICommandContentProvider contentProvider, AdomdPropertyCollection commandProperties, IDataParameterCollection parameters)
at Microsoft.AnalysisServices.AdomdClient.AdomdCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.AnalysisServices.AdomdClient.AdomdCommand.ExecuteReader()
at Microsoft.Fabric.SemanticLink.DAXToParquetWriter.Write(String dax, String fileName, Int32 batchSize, AdomdConnection adomdConnection, Int32 verbose, Nullable`1 maxNumRows, Nullable`1 activityId)
⌛ Saving the Model BPA results of the 'Sandbox_PL' workspace to the 'modelbparesults' within the 'BPA' lakehouse within the 'BPA' workspace...
🟢 The dataframe has been saved as the 'modelbparesults' table in the 'BPA' lakehouse within the 'BPA' workspace.
🟢 Saved BPA results to the 'modelbparesults' delta table.
Fixed in 0.8.5.
run_model_bpa_bulk function fails when there is a semantic model with no tables in a Workspace.
To Reproduce Steps to reproduce the error:
Expected behavior Function should omit semantic models with no tables.
Version: 0.8.4