【问题标题】:SSRS 2016 - Failure sending mail: The operation has timed out.Mail will not be resentSSRS 2016 - 发送邮件失败:操作已超时。不会重新发送邮件
【发布时间】:2018-07-31 01:37:56
【问题描述】:

发送电子邮件订阅(数据驱动)时,我经常收到以下错误

   at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
notification!WindowsService_5!2754!07/31/2018-10:12:22:: e ERROR: Error occurred processing subscription ec52efbe-63be-4b47-85e1-fa8f850d76ab: Failure sending mail: The operation has timed out.Mail will not be resent.
notification!WindowsService_5!2754!07/31/2018-10:12:22:: i INFO: Notification 8290464c-90d6-4e58-859e-33f4a4e24a74 completed.  Success: False, Status: Failure sending mail: The operation has timed out.Mail will not be resent., DeliveryExtension: Report Server Email, Report: Invoice, Attempt 0
emailextension!WindowsService_5!8c0!07/31/2018-10:12:33:: e ERROR: Error sending email. Exception: System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)

我不认为这是报告超时,因为它在文件共享订阅上运行良好,没有任何错误。每次只生成大约 60 - 70 封电子邮件,超过 75% 的邮件因上述错误而失败。但是我有相同的报告为文件共享做了 400 多个,它们都工作正常。 (0 个错误)

我查看了报表服务器设置并增加了会话超时值等。但没有任何区别。

我在 Windows Server 2012 R2(64 位)上使用 SSRS 2016(64 位)企业版

我似乎无法在网上找到任何明确的指针......任何帮助将不胜感激

【问题讨论】:

  • 能否拉取 SMTP 日志并找到违规地址并查看它们是否有效?
  • 感谢您的回复,但我怀疑这是地址.. 如果我再次运行订阅.. 它会在不同的地址集上失败.. 所以它不一致.. 因此我拉扯我的头发出去!
  • 您确定 SMTP 配置正确吗?
  • 是的,我有其他数据驱动的电子邮件订阅,最多有 10 或 15 封电子邮件,它们似乎工作正常。我还想知道是否可以减少电子邮件的数量从单个订阅发送出去

标签: reporting-services ssrs-2016 reporting-services-2016 ssrs-subscription


【解决方案1】:

对于那些遇到此问题并想知道如何解决此问题的人.. 我不敢相信这在任何地方都没有建议!

更改数据驱动订阅的数据集的超时时间。这解决了我遇到的错误!这么简单。。

我的设置为 30 秒。我将其更改为 100 并且效果很好。但我的报告在每份报告中运行不到 3 秒.. 将此值更改为 0 使其不会超时。不知道这是否是一个明智的想法..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-18
    • 2016-04-11
    • 1970-01-01
    • 2017-02-09
    • 1970-01-01
    • 2018-08-09
    • 2014-08-09
    相关资源
    最近更新 更多