この問題の根底にある問題を解読するのに苦労しています
ユーザーが情報を入力するフォームがあります。その情報は URL を介して SSRS に渡されます
エラーが発生しています
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for data set 'Report'. (rsErrorExecutingCommand)
Must declare the scalar variable "@ReportType". Must declare the scalar variable "@StoreNum". Must declare the scalar variable "@ReportType". Must declare the scalar variable "@StoreNum".
クエリはこれです
IF @ReportType = 'RE'
BEGIN
exec proc_Report_RETaxInvoices_InterActive @StoreNum, @StartDate, @EndDate, @TaxId, @BusinessName, @Attention, @LocatedIn, @Street, @AdditionalAddress, @City, @State, @PostalCode
END
ELSE IF @ReportType = 'RY'
BEGIN
exec proc_Report_ARTaxInvoices_InterActive @StoreNum, @StartDate, @EndDate, @TaxId, @BusinessName, @Attention, @LocatedIn, @Street, @AdditionalAddress, @City, @State, @PostalCode
END
私のレポートパラメータはこのように見えます
URLは長くて厄介ですが、有効に見えます
http://<SECRET>/ReportServer/Pages/ReportViewer.aspx?%2fSubway%2fAccounting%2fAccounting%2fTax+Report+Interactive&rs:Command=Render&rc:Parameters=false&ReportType=RE&StoreNum=25159&StartDate=11%2F1%2F2012&EndDate=11%2F1%2F2012&TaxId=1&BusinessName=1&Attention=1&LocatedIn=1&Street=1&AdditionalAddress=1&City=1&State=1&PostalCode=1
注意してください
&ReportType=RE&StoreNum=25159
クエリ文字列にある
SSRS BIDS 環境でクエリ エディターからレポートを実行すると、結果セットが返されます。
だから私はこのエラーに途方に暮れています