KB3171085 - 配置为自动刷新的报表在 SQL Server 2016 中 Web 浏览器空闲一段时间后导致错误 Reporting Services

应用对象
SQL Server 2016 Developer - duplicate (do not use) SQL Server 2016 Enterprise - duplicate (do not use) SQL Server 2016 Standard - duplicate (do not use)

症状

假设您为 SQL Server 2016 Reporting Services 报表配置了“自动刷新”属性,以便可以自动更新其数据。 如果在 Web 浏览器中打开报表,然后让浏览器闲置一段时间,将收到类似于以下内容的错误消息:

注意

报告执行 session_id 已过期或找不到。 (rsExecutionNotFound)

此外,类似下面这样的错误消息记录在 Reporting Services 服务跟踪日志中:

注意

库!ReportServer_0-2!2258!datetime:: i INFO: 调用 GetPermissionsAction (/USERIDAutoRefresh) 。

库!ReportServer_0-2!2258!datetime:: i INFO: 调用 GetSystemPropertiesAction () 。

库!ReportServer_0-2!2258!datetime:: i INFO: 调用 GetPropertiesAction (/USERIDAutoRefresh, PathBased) 。

库!ReportServer_0-2!2258!datetime:: i INFO: 调用 GetSystemPermissionsAction () 。

库!ReportServer_0-2!22b8!datetime:: i INFO: 调用 GetSystemPropertiesAction () 。

库!ReportServer_0-2!22b8!datetime:: e 错误:引发 Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , 报表服务器数据库中发生错误。 这可能是由于数据库内的连接故障、超时或磁盘不足造成的。

session!ReportServer_0-2!22b8!datetime:: e 错误:获取会话数据时出错:会话 session_id 不属于 NT Service\ReportServer

session!ReportServer_0-2!22b8!datetime:: i INFO: LoadSnapshot: Item with session: session_id, reportPath: /USERIDAutoRefresh, userName: NT Service\ReportServer 未在数据库中找到

库!ReportServer_0-2!22b8!datetime:: e 错误:引发 Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: , Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: 报告执行 session_id 已过期或找不到。;

webserver!ReportServer_0-2!22b8!datetime:: e 错误:Reporting Services错误 Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException:报告执行session_id已过期或找不到。

      

解决方法

此问题的修补程序包含在 SQL Server 的以下累积更新中:

SQL Server 2016 累积更新 1
注意 应用此更新后,Reporting Services 日志将提供有关会话过期原因的更多详细信息,以便管理员诊断和解决根本问题。

关于 SQL Server 的累积更新

SQL Server 的每个新累积更新都包含上一个累积更新中包含的所有修补程序和所有安全修补程序。 查看 SQL Server 的最新累积更新:

SQL Server 2016 的最新累计更新
      

状态

Microsoft 已确认在 "适用于" 部分中所列的 Microsoft 产品中存在问题。

参考资料

了解 Microsoft 用于描述软件更新的 术语 。