【问题标题】:SSRS data driven subscription errorSSRS 数据驱动订阅错误
【发布时间】:2015-11-10 19:25:06
【问题描述】:

我有一个包含 71 个参数的数据驱动订阅。每次我运行订阅时,我都会收到 5 个错误,71 个错误中有 71 个处理了 5 个错误。但是当我计算我的报告时,只创建了 66 个报告。我试图检查日志,但除了at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback) at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.CreateExtensionObject(Extension extConfig, Boolean typeOnly). library!ReportServer_0-43!3b10!11/10/2015-11:46:20:: i INFO: Call to GetSystemPropertiesAction(). library!ReportServer_0-43!411c!11/10/2015-11:46:20:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.LogonFailedException: Logon attempt for user 'user' failed., Microsoft.ReportingServices.Diagnostics.Utilities.LogonFailedException: Log on failed. Ensure the user name and password are correct. ---> System.ComponentModel.Win32Exception: The user name or password is incorrect at Microsoft.ReportingServices.Diagnostics.Utilities.LoginUtil.Login(String userName, IntPtr ptrPwd, String domain) at Microsoft.ReportingServices.Diagnostics.Utilities.LoginUtil.Login(String userName, SecureStringWrapper userPwd, String domain) at Microsoft.ReportingServices.Diagnostics.ImpersonationContext..ctor(String userName, SecureStringWrapper password, String domain) --- End of inner exception stack trace ---; 之外找不到任何错误 我错过了什么,没有正确阅读日志吗?任何帮助表示赞赏。提前致谢!

【问题讨论】:

  • 转到报告的每个相关数据源并检查无效的凭据/登录信息。
  • 我检查并确认它是正确的,令人困惑的部分是所有 66 份报告都在运行,只有 5 份给出了错误,而我的所有凭据在整个数据库中都是相同的。谢谢。
  • 这 66 份报告是否使用同一个数据库?并同时生成?
  • 兄弟,如果这对你有帮助,你能检查一下这个帖子吗social.technet.microsoft.com/Forums/en-US/…
  • 您应该手动确定 5 次运行中的哪一次失败。很可能是相同的 5。然后尝试手动运行这些实例的报告,看看它给出的错误是什么,或者它是否运行正常。

标签: sql reporting-services business-intelligence ssrs-2012


【解决方案1】:

要确定哪些日志失败,您可以查看报表服务器的执行日志:

Use ReportServer
select * from ExecutionLog order by TimeStart DESC

“ReportID”字段可以在报表服务器的“目录”表中查找。我发现设置一个 SSRS 报告来查询这是非常宝贵的。

一旦您确定了失败的报告(通过上述查询),您就可以尝试手动运行它们,看看它们是否有效。如果它们确实有效,则仅为这些报告设置订阅,并查看它们在作为订阅运行时是否有效。

如果您以前从未遇到过这些问题,我敢打赌,数据源使用直通身份验证,该身份验证在登录时有效,但在自动运行时无效。

让我们知道你的进展情况!

【讨论】:

  • 非常有用的信息!谢谢,但由于某种原因,错误没有显示在表格上,它显示的唯一日志是两个月前创建订阅的时间。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2023-04-08
  • 1970-01-01
  • 1970-01-01
  • 2022-08-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多