レポート ビルダー 3 の SSRS レポートに問題があります。フィールドの int データ型ではなく、テキストを表示するためにケース化されているパラメーターを使用しようとしています。レポートをプレビューしようとするたびに、レポート ビルダーがエラーを吐き出します。データ型をキャストして変換しようとしましたが、それでも同じエラーが発生します。どんな洞察も大歓迎です。以下は、パラメーターがソーシングしているクエリとエラー メッセージです。
--クエリ
select distinct case convert(varchar(10),workorderstatusid)
when '1' then 'Open'
when '2' then 'Closed'
when '105' then 'OnHold'
when '101' then 'Cancelled'
end as 'Status'
from tasks
- エラーメッセージ
Cannot read the next data row for the dataset DataSet1. (rsErrorReadingNextDataRow)
----------------------------
An error has occurred during report processing. (rsProcessingAborted)
-- データセット 1 - メイン クエリ
select wo_num as 'Word Order ID',isnull(dept,'Unassigned') as 'Department',
task as 'Summary', isnull(descript, 'No Description') as 'Notes',
respons as 'Assigned Technician', duedate as 'Due Date',completed as 'Date Completed',
isnull(status,'Incomplete') as 'Status'
from tasks
where (workorderstatusid =@status)
and (dept=@department)
order by wo_num asc