SSAS OLAP 多维数据集处理失败
SSAS OLAP cube processing failed
最近几个月,我遇到了一个关于每天自动处理我们的 olap 立方体模型的问题。
主要问题是此错误消息不定期出现。即白天,有时处理成功,有时10分钟后出错crash
错误信息如下:
Microsoft.AnalysisServices.Xmla.XmlaException: The JSON DDL request
failed with the following error: Failed to execute XMLA. Error
returned: 'OLE DB or ODBC error: [DataSource.Error] PostgreSQL:
Exception while reading from stream.OLE DB or ODBC error:
[DataSource.Error] PostgreSQL: Exception while reading from
stream.OLE DB or ODBC error: The command has been
canceled..'.. at
Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader
reader XmlaResult xmlaResult Boolean throwIfError) at
Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForError(XmlReader
reader XmlaResult xmlaResult Boolean throwIfError) at
Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessage(Boolean
endReceivalIfException Boolean readSession Boolean
readNamespaceCompatibility) at
Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessageAndReturnResult(String&
result Boolean skipResult) at
Microsoft.AnalysisServices.Xmla.XmlaClient.ExecuteStatement(String
statement String properties String& result Boolean
skipResult Boolean propertiesXmlIsComplete) at
Microsoft.AnalysisServices.Xmla.XmlaClient.Execute(String command
String properties String& result Boolean skipResult
Boolean propertiesXmlIsComplete) at
Microsoft.SqlServer.Management.Smo.Olap.SoapClient.ExecuteStatement(String
stmt StatementType stmtType Boolean withResults String
properties String parameters Boolean
restrictionListElement String discoverType String
catalog) at
Microsoft.SqlServer.Management.Smo.Olap.SoapClient.SendCommand(String
command Boolean withResults String properties) at
OlapEvent(SCH_STEP* pStep SUBSYSTEM* pSubSystem
SUBSYSTEMPARAMS* pSubSystemParams Boolean fQueryFlag)
我尝试设置各种超时:RemoteQueryTimeout(从 600 到更大的数字,如 2000,甚至 0 表示没有超时)、ExternalCommandTimeout、ExternalConnectionTimeou、ForceCommitTimeout
没有任何帮助,错误仍然存在
有人遇到过这种问题吗?老实说,我已经不知道问题是什么以及如何解决了
提前致谢
好吧,我找到了解决办法。解决方案是在连接到数据库时添加 “commandTimeout”:”PT1H”
1 小时超时作为 condition
最近几个月,我遇到了一个关于每天自动处理我们的 olap 立方体模型的问题。 主要问题是此错误消息不定期出现。即白天,有时处理成功,有时10分钟后出错crash
错误信息如下:
Microsoft.AnalysisServices.Xmla.XmlaException: The JSON DDL request failed with the following error: Failed to execute XMLA. Error returned: 'OLE DB or ODBC error: [DataSource.Error] PostgreSQL: Exception while reading from stream.OLE DB or ODBC error: [DataSource.Error] PostgreSQL: Exception while reading from stream.OLE DB or ODBC error: The command has been canceled..'.. at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForSoapFault(XmlReader reader XmlaResult xmlaResult Boolean throwIfError) at Microsoft.AnalysisServices.Xmla.XmlaClient.CheckForError(XmlReader reader XmlaResult xmlaResult Boolean throwIfError) at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessage(Boolean endReceivalIfException Boolean readSession Boolean readNamespaceCompatibility) at Microsoft.AnalysisServices.Xmla.XmlaClient.SendMessageAndReturnResult(String& result Boolean skipResult) at Microsoft.AnalysisServices.Xmla.XmlaClient.ExecuteStatement(String statement String properties String& result Boolean skipResult Boolean propertiesXmlIsComplete) at Microsoft.AnalysisServices.Xmla.XmlaClient.Execute(String command String properties String& result Boolean skipResult Boolean propertiesXmlIsComplete) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.ExecuteStatement(String stmt StatementType stmtType Boolean withResults String properties String parameters Boolean restrictionListElement String discoverType String catalog) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient.SendCommand(String command Boolean withResults String properties) at OlapEvent(SCH_STEP* pStep SUBSYSTEM* pSubSystem SUBSYSTEMPARAMS* pSubSystemParams Boolean fQueryFlag)
我尝试设置各种超时:RemoteQueryTimeout(从 600 到更大的数字,如 2000,甚至 0 表示没有超时)、ExternalCommandTimeout、ExternalConnectionTimeou、ForceCommitTimeout
没有任何帮助,错误仍然存在
有人遇到过这种问题吗?老实说,我已经不知道问题是什么以及如何解决了
提前致谢
好吧,我找到了解决办法。解决方案是在连接到数据库时添加 “commandTimeout”:”PT1H”
1 小时超时作为 condition