简体   繁体   English

SSRS报告订阅以错误结束

[英]SSRS report subscription ended with an error

I hate to cross post, but I wasn't getting any progress with this on serverfault and there appears to be a lot more activity with regard to reporting services here. 我讨厌过帖,但我在服务器故障方面没有取得任何进展,而且这里有关于报告服务的更多活动。

I've created a simple report in SSRS, and then tried my hand out with a data driven subscription. 我在SSRS中创建了一个简单的报告,然后尝试使用数据驱动的订阅。 I can verify that the subscription runs on the 'My Subscriptions' page. 我可以验证订阅是否在“我的订阅”页面上运行。 Under Status it says Done: 1 processed of 1 total; 1 errors. 在状态下,它表示Done: 1 processed of 1 total; 1 errors. Done: 1 processed of 1 total; 1 errors.

How do I find out what this error is ? 我怎么知道这个错误是什么?

I've looked in the Windows Event Logs and haven't found anything. 我查看了Windows事件日志,但没有找到任何内容。 I also checked the SQL Server Logs and nothing is there either. 我还检查了SQL Server日志,也没有任何内容。

You need to look in the "Report Server Execution Log" which is a particular SQL Reporting Services log file. 您需要查看“报表服务器执行日志”,这是一个特定的SQL Reporting Services日志文件。

See Reporting Services Log Files for details. 有关详细信息,请参阅Reporting Services日志文件

A bit late to the party, however: Here is where I find my logs when DD subscription fails: 然而,派对有点晚了:这是我在DD订阅失败时找到我的日志的地方:

C:\\Program Files\\Microsoft SQL Server\\MSSQL.2\\Reporting Services\\LogFiles look for filename: ReportServerService*.log with relevant Date Modified C:\\ Program Files \\ Microsoft SQL Server \\ MSSQL.2 \\ Reporting Services \\ LogFiles查找文件名:ReportServerService * .log,相关日期已修改

You also can check the Report History, to get this option, put the mouse on top of your report and select manage option from drop-down list of your report, look for the " Report History " on the left options, create a " New Snapshot " 您还可以查看报告历史记录,获取此选项,将鼠标放在报告的顶部,然后从报告的下拉列表中选择管理选项,在左侧选项中查找“ 报告历史记录 ”,创建“ 新建”快照

It will show you, the last error know: 它会告诉你,最后一个错误知道:

Parameter validation failed. It is not possible to provide valid values for all parameters (rsParameterError) 

for this case you need to check the definition of the report, I had an issue with the drop-down list I used to send parameters to the report. 对于这种情况,您需要检查报告的定义,我遇到了用于向报告发送参数的下拉列表的问题。

The path under which you can find Report Server Service logs could be different, such as: C:\\Program Files\\Microsoft SQL Server\\MSRS12.MSSQLSERVER\\Reporting Services\\LogFiles 您可以在其中查找报表服务器服务日志的路径可能不同,例如:C:\\ Program Files \\ Microsoft SQL Server \\ MSRS12.MSSQLSERVER \\ Reporting Services \\ LogFiles

In this logs you can find errors that happened after generating the report itself. 在此日志中,您可以找到生成报告本身后发生的错误。 For instance, if the Reporting Services user needs to write the report as a CSV file after a subscription and it lacks the necessary authorization, the only place where you can find the description of the error is in these logs, while the history of the Job connected with the subscription and the Execution Log will tell you that the Report was correctly generated (nothing about saving the report). 例如,如果Reporting Services用户需要在订阅后将报告编写为CSV文件并且缺少必要的授权,则可以在这些日志中找到错误描述的唯一位置,而作业的历史记录与订阅相关联,执行日志将告诉您报告已正确生成 (没有关于保存报告)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM