SSRS - 无法读取数据集 DataSet1 的下一行

SSRS - Cannot read the next row for dataset DataSet1

with TotCFS as (select count(*)*1.0 as TotalCFS,
 'Total CFS' as RowTitle
from PrivilegeData.TABLENAMEC c
where cast(CallCreatedDateTime  as date) between @StartDate and @EndDate and CallPriority in ('1', '2', '3', '4', '5') and AreaCommand in ('FH', 'VA', 'NE', 'NW', 'SE', 'SW')  and IsBolo = 0
) 


select AreaCommand, CallPriority, 
avg(datediff(second, CallCreatedDateTime, CallEntryDateTime)) as AverageSeconds,
left(dbo.[ConvertTimeToHHMMSS](avg(datediff(second, CallCreatedDateTime, CallEntryDateTime)), 's'), 7) as DisplayAvg,
 'Create to Entry' as RowTitle, 1 as RowSort, b.SortOrder as ColumnSort
from PrivilegeData.TABLENAMEC c
inner join (select distinct AreaCommandAbbreviation, SortOrder from dimBeat) b on c.AreaCommand = b.AreaCommandAbbreviation
where cast(CallCreatedDateTime  as date) between @StartDate and @EndDate and CallPriority in ('1', '2', '3', '4', '5') and AreaCommand in ('FH', 'VA', 'NE', 'NW', 'SE', 'SW')  and IsBolo = 0
group by AreaCommand, CallPriority, SortOrder

UNION

select AreaCommand, CallPriority, 
avg(datediff(second, CallEntryDateTime, CallDispatchDateTime)) as AvgEntryToDispatchSeconds,
left(dbo.ConvertTimeToHHMMSS(avg(datediff(second, CallEntryDateTime, CallDispatchDateTime)), 's'), 7) as DisplayAvgEntryToDispatchSeconds,
 'Entry to Dispatch' as RowTitle, 2 , b.SortOrder
from PrivilegeData.TABLENAMEC c
inner join (select distinct AreaCommandAbbreviation, SortOrder from dimBeat) b on c.AreaCommand = b.AreaCommandAbbreviation
where cast(CallCreatedDateTime  as date) between @StartDate and @EndDate and CallPriority in ('1', '2', '3', '4', '5') and AreaCommand in ('FH', 'VA', 'NE', 'NW', 'SE', 'SW')  and IsBolo = 0
group by AreaCommand, CallPriority, SortOrder

我正在为这段代码做大约 8 个联合。不同之处在于行标题的名称。这份报告已经 运行 大约一年了,没有任何问题。我在 SSRS 查询类型文本中使用此代码。我还有一个行集名称 'AverageSeconds' 配置为读取此表达式

 =IIf((Fields!RowSort.Value) < 7,Format(DateAdd("s", Avg(Fields!AverageSeconds.Value), "00:00:00"), "H:mm:ss"), Sum(Fields!AverageSeconds.Value))

该报告有些损坏,我已经尝试了我找到的所有方法来修复它。请帮我解决这个错误 'rsErrorReadingNextDataRow'。

这一定是操作数据的问题。可能是 0 或 NULL 值条件。我会首先查看问题开始前后添加或更改的记录。

我删除并重新创建了事实 table 和 运行 我的 ssis 包,接缝修复它。我这样做的原因是因为我找不到 NULL 或 0 值。