我建立的設置來部署我的SSRS通過八達通部署報表發佈SSRS,我發現了一個Octopus Library,我的工作就可以了,但我有一些問題:八達通
1° - ---消息錯誤:(路徑沒問題,但它保持相同的警告) 警告:無法在銷售驅動程序/數據源中找到數據源SalesDrivers
2º----該方法不存在 方法調用失敗,因爲[Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy3er_ReportService2005_asmx_wsdl.ReportingService2005]不包含名爲「LoadReportDefinition」的方法。
從拋出錯誤模板\庫PowerShell的功能可以得到如下圖所示:
#region Update-ReportParamters()
Function Update-ReportParameters($ReportFile)
{
# declare local variables
$ReportParameters = @();
# necessary so that when attempting to use the report execution service, it doesn't puke on you when it can't find the data source
$ReportData = (Remove-SharedReferences -ReportFile $ReportFile)
# get just the report name
$ReportName = $ReportFile.SubString($ReportFile.LastIndexOf("\") + 1)
$ReportName = $ReportName.SubString(0, $ReportName.IndexOf("."))
# create warnings object
$ReportExecutionWarnings = $null
# load the report definition
Write-Host "*********************************************"
#Write-Host $ReportData
#(Remove-SharedReferences -ReportFile $ReportFile)
#Write-Host $ReportExecutionWarnings
$ExecutionInfo = $ReportExecutionProxy.LoadReportDefinition($ReportData, [ref] $ReportExecutionWarnings);
# loop through the report execution parameters
foreach($Parameter in $ExecutionInfo.Parameters)
{
# create new item parameter object
$ItemParameter = New-Object "$ReportServerProxyNamespace.ItemParameter";
# fill in the properties except valid values, that one needs special processing
Copy-ObjectProperties -SourceObject $Parameter -TargetObject $ItemParameter;
# fill in the valid values
$ItemParameter.ValidValues = Convert-ValidValues -SourceValidValues $Parameter.ValidValues;
# add to list
$ReportParameters += $ItemParameter;
}
# force the parameters to update
Write-Host "Updating report parameters for $ReportFolder/$ReportName"
if ($IsReportService2005) {
$ReportServerProxy.SetReportParameters("$ReportFolder/$ReportName", $ReportParameters);
}
elseif ($IsReportService2010) {
$ReportServerProxy.SetItemParameters("$ReportFolder/$ReportName", $ReportParameters);
}
else { Write-Warning 'Report Service Unknown in Update-ReportParameters method. Use ReportService2005 or ReportService2010.' }
}
任何人都知道我怎麼會整理出來?
感謝您的回答@alastairtree。這絕對是一個好方法。我實際上找到了上面我的問題的答案。正如上面提到的[這裏]使用了錯誤的ReportExecution Proxy Url(https://github.com/OctopusDeploy/Library/issues/261)。我猜想使用Octopus Step Template與使用RSBuild相似。 – LRBuffone
嗨@alastairtree,我越來越_ [設置]:配置系統無法initialize_確實有這個問題,當使用RSBuild時,也似乎像一個死的項目... – Borik
@borik不,我沒有。你是否檢查過你正在替換示例中的所有$ {XYZ}模板變量?也許只嘗試部署一個報告?它可能看起來像一個死了的項目,但對我來說它只是起作用,也許它不是「死」,更多「完成」。 – alastairtree