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

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.

Reply
tripleacoder
Helper I
Helper I

Power BI PushStreaming Dataset gives "Couldn't load the model schema" error

I'm using Power BI desktop to create a report from a Power BI PushStreaming Dataset that was created via REST API. The dataset is very simple, it has 3 fields in one table, and the report only has a Card visualization. It sometimes works, but I keep getting an error: 'Couldn't load the model schema'; and 'An error occurred while loading the model for the item or data source'. After that, Power BI Desktop has to be closed and restarted. Why do I get this error and how do I fix it?
3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@tripleacoder,

It seems that you are connecting to Power BI Service dataset in Power BI Desktop, could you please share Power BI trace log here? You can enable tracing under File->Options and Settings->Options->Diagnostics.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The last bit: Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel()\r\n at Microsoft.PowerBI.Client.Windows.Ribbon.ApplicationRibbonCommandActionHandler.CreateNewMeasureCommandParameter()\r\n at Microsoft.PowerBI.Client.Windows.Ribbon.RibbonCommandBinder.<>c__DisplayClasse`1.b__c(UInt32 id)\r\n at Microsoft.Mashup.Client.UI.Shared.UICommands.CommandAction.IsEnabled(UInt32 commandId)\r\n at Microsoft.Mashup.Client.UI.Windows.Ribbon.RibbonCommandHandler.UpdateProperty(UInt32 commandId, PropertyKey& key, PropVariantRef currentValue, PropVariant& newValue)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel()\r\n at Microsoft.PowerBI.Client.Windows.Ribbon.ApplicationRibbonCommandActionHandler.CreateNewCalculatedColumnTableNameCommandParameter()\r\n at Microsoft.PowerBI.Client.Windows.Ribbon.RibbonCommandBinder.<>c__DisplayClasse`1.b__c(UInt32 id)\r\n at Microsoft.Mashup.Client.UI.Shared.UICommands.CommandAction.IsEnabled(UInt32 commandId)\r\n at Microsoft.Mashup.Client.UI.Windows.Ribbon.RibbonCommandHandler.UpdateProperty(UInt32 commandId, PropertyKey& key, PropVariantRef currentValue, PropVariant& newValue)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel()\r\n at Microsoft.PowerBI.Client.Windows.ExplorationClientHost.IsNewQuickMeasureSupported()\r\n at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T](IExceptionHandler exceptionHandler, Func`1 func)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema()\r\n at Microsoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel()\r\n at Microsoft.PowerBI.Client.Windows.ExplorationClientHost.IsNewQuickMeasureSupported()\r\n at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T](IExceptionHandler exceptionHandler, Func`1 func)","OSBitness":"64-bit","OSVersion":"Microsoft Windows NT 10.0.17134.0","location":"","powerBINonFatalError":"{\"AppName\":\"PBIDesktop\",\"AppVersion\":\"2.65.5313.841\",\"ModuleName\":\"Microsoft.PowerBI.ReportingServicesHost.dll\",\"Component\":\"Microsoft.PowerBI.ReportingServicesHost.LocalReportProcessingHost\",\"Error\":\"Microsoft.ReportingServices.Diagnostics.Utilities.CannotRetrieveModelException\",\"MethodDef\":\"ExecuteSchemaCommand\",\"ErrorOffset\":\"232\"}","sessionId":"2db01917-cbc2-4f03-adee-b4369de35545","deviceId":"90b259b0","userId":"8a42b928-4e36-43cf-b83b-94a72240462f","isInternal":"False","authenticatedUserId":"93d71758-f946-4a99-9a5c-e89c3dea8b5c","ProductVersion":"2.65.5313.841 (18.12)","ActivityId":"077bf9e3-5547-4450-8c60-42bbb7dd7cea","Process":"PBIDesktop","Pid":23704,"Tid":1,"Duration":"00:00:00.0457118"} DataMashup.Trace Critical: 24579 : {"Start":"2019-01-11T09:24:51.7904721Z","Action":"Mashup.EngineExceptionEvent","uxVisible":"True","type":"CannotRetrieveModelException","stackTrace":"Microsoft.PowerBI.ReportingServicesHost.LocalReportProcessingHost.ExecuteSchemaCommand[T]\r\nMicrosoft.PowerBI.ReportingServicesHost.LocalReportProcessingHost.GetModelMetadata\r\nMicrosoft.PowerBI.ReportingServicesHost.DataShapingHelper.GetModelMetadata\r\nMicrosoft.PowerBI.ReportingServicesHost.ReportingSession.GetModel\r\nMicrosoft.PowerBI.ReportingServicesHost.ReportingSession.GetModelAsStream\r\nMicrosoft.PowerBI.ReportingServicesHost.ReportingSession.GetConceptualSchema\r\nMicrosoft.PowerBI.ExploreHost.Utils.ExploreHostUtils.GetConceptualSchemaImpl\r\nMicrosoft.PowerBI.ExploreHost.Utils.ExploreHostUtils.HandleModelRetrievalExceptions[T]\r\nMicrosoft.PowerBI.ExploreHost.Utils.ExploreHostUtils.GetConceptualSchemaAndHandleExceptions\r\nMicrosoft.PowerBI.ExploreHost.ExploreClient.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.ExplorationClientHost.IsAskAQuestionSupported\r\nMicrosoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T]\r\n--- End of stack trace from previous location where exception was thrown ---\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.ExplorationClientHost.IsAskAQuestionSupported\r\nMicrosoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T]\r\n--- End of stack trace from previous location where exception was thrown ---\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.Ribbon.ApplicationRibbonCommandActionHandler.CreateNewMeasureCommandParameter\r\nMicrosoft.PowerBI.Client.Windows.Ribbon.RibbonCommandBinder.<>c__DisplayClasse`1.b__c\r\nMicrosoft.Mashup.Client.UI.Shared.UICommands.CommandAction.IsEnabled\r\nMicrosoft.Mashup.Client.UI.Windows.Ribbon.RibbonCommandHandler.UpdateProperty\r\n--- End of stack trace from previous location where exception was thrown ---\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.Ribbon.ApplicationRibbonCommandActionHandler.CreateNewCalculatedColumnTableNameCommandParameter\r\nMicrosoft.PowerBI.Client.Windows.Ribbon.RibbonCommandBinder.<>c__DisplayClasse`1.b__c\r\nMicrosoft.Mashup.Client.UI.Shared.UICommands.CommandAction.IsEnabled\r\nMicrosoft.Mashup.Client.UI.Windows.Ribbon.RibbonCommandHandler.UpdateProperty\r\n--- End of stack trace from previous location where exception was thrown ---\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.ExplorationClientHost.IsNewQuickMeasureSupported\r\nMicrosoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T]\r\n--- End of stack trace from previous location where exception was thrown ---\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.GetConceptualSchema\r\nMicrosoft.PowerBI.Client.Windows.AnalysisServices.AnalysisServicesDatabaseLive.get_DataModel\r\nMicrosoft.PowerBI.Client.Windows.ExplorationClientHost.IsNewQuickMeasureSupported\r\nMicrosoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T]\r\n","sessionId":"2db01917-cbc2-4f03-adee-b4369de35545","deviceId":"90b259b0","userId":"8a42b928-4e36-43cf-b83b-94a72240462f","isInternal":"False","authenticatedUserId":"93d71758-f946-4a99-9a5c-e89c3dea8b5c","Pr

@tripleacoder,

Please open a ticket in Power BI support site.
Support Ticket.gif



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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