reporting-services - 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 位)企业版
我似乎无法在网上找到任何明确的指针.. 任何帮助将不胜感激
解决方案
对于那些遇到此问题并想知道如何解决此问题的人.. 我不敢相信这在任何地方都没有被建议!
更改数据驱动订阅的数据集的超时时间。这解决了我遇到的错误!很简单..
我的设置为 30 秒。我将其更改为 100 并且效果很好。但我的报告在每份报告中运行不到 3 秒.. 将此值更改为 0 使其不会超时。不知道这是否是一个明智的想法。
推荐阅读
- java - Heroku中的Spring Boot项目作为对另一个本地Spring Boot项目的依赖?
- excel - Excel执行宏后随机崩溃
- javascript - console.log 在 java 脚本中打印数组
- python-3.x - 在 python 中存储变量或凭据的最佳方法是什么?
- visual-studio-code - 具有针对不同编程语言的不同扩展的独立 Visual Studio Code 工作区
- asp.net-mvc - 如何为具有列表字段的模型创建 CREATE 视图和控制器方法?
- javascript - prepend 和 appendchild 之间的区别
- python - 处理后的图像是否需要形态学后处理,如何自动推断?
- c - C代码每次都给出零值。我能纠正什么?
- php - 如何在 laravel 中只加入表的最后一条记录?