首页 > 解决方案 > SSRS 2016 - 发送邮件失败:操作已超时。邮件将不会重新发送

问题描述

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

   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 位)企业版

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

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

解决方案


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

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

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


推荐阅读