我有一个SSAS多维数据集,我已经通过Octopus Deploy +一些PS脚本自动部署。
部署SSAS多维数据集的脚本如下所示:
function Deploy-Cube($databasePath)
{
$executable = "C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe"
Write-Output "Deploying Cube"
& $executable $databasePath "/s:Deploy.log"
$process = Get-Process "Microsoft.AnalysisServices.Deployment"
$process.WaitForExit()
$log = Resolve-Path ".\Deploy.log"
$output = [System.IO.File]::ReadAllText($log)
if ($output.Contains("Error"))
{
Throw $output
}
else
{
$output | Write-Output
}
}
$databasePath = $(Resolve-Path -Path ".\Cube.asdatabase").Path
Copy-Item ".\Cube.no-process.deploymentoptions" "Cube.deploymentoptions" -Force
Deploy-Cube -DatabasePath $databasePath
Copy-Item ".\Cube.full.deploymentoptions" "KK.Corporate.DataWarehouse.Cube.deploymentoptions" -Force
Deploy-Cube -DatabasePath $databasePath
Deploy.log的输出是:
Connecting to the localhost server
Database, Cube, found on server, localhost. Applying configuration settings and options...
Analyzing configuration settings...
Done
Analyzing optimization settings...
Done
Analyzing storage information...
Done
Analyzing security information...
Done
Generating processing sequence...
Deploying the 'Cube' database to 'localhost'.
Internal error: The operation terminated unsuccessfully.
Server: The current operation was cancelled because another operation in the transaction failed.
Errors in the OLAP storage engine: An error occurred while the 'Dimension Item Id' attribute of the 'Sales' dimension from the 'Cube' database was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Item Description' attribute of the 'Items' dimension from the 'Cube' database was being processed.
OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dimension Dates', Name of 'Dates' was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Week' attribute of the 'Dates' dimension from the 'Cube' database was being processed.
OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dimension Items', Name of 'Items' was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Category' attribute of the 'Items' dimension from the 'Cube' database was being processed.
OLE DB error: OLE DB or ODBC error: Operation canceled; HY008.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'SalesTransactions', Name of 'SalesTransactions' was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Transaction Key' attribute of the 'SalesTransactions' dimension from the 'Cube' database was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Dimension Time Id' attribute of the 'Sales' dimension from the 'Cube' database was being processed.
Errors in the OLAP storage engine: An error occurred while the 'Dimension Time Id' attribute of the 'Times' dimension from the 'Cube' database was being processed.
SSAS日志的输出是:
(12/8/2014 12:24:42 PM) Message: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008. (Source: \\?\C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210003)
(12/8/2014 12:24:42 PM) Message: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008. (Source: \\?\C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210003)
(12/8/2014 12:24:42 PM) Message: OLE DB error: OLE DB or ODBC error: Operation canceled; HY008. (Source: \\?\C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210003)
如果我尝试在SSAS中手动运行一个完整的进程,我会得到一个与Deploy.log同样神秘的错误消息。
我在本地和CI服务器上运行相同的部署过程。三个环境中的权限相同,并且在3个中有2个。
造成这种情况的原因是什么?我能做些什么来解决它吗?
答案 0 :(得分:2)
根据Tab Alleman的建议,我尝试手动执行多维数据集的完整过程。遗憾的是,我手头没有错误信息,但它说了“内部错误已经发生”的结果。
预感到,我重新启动了SSAS实例并再次尝试了整个过程。 SSAS第二次正确报告了导致其失败的错误。
简而言之:如果您从SSAS没有收到任何有用的错误或模糊的错误消息,请尝试重新启动实例并手动处理它。