SSIS 任务成功但 SQL 代理报告失败
SQL 代理作业在运行 SSIS 包后返回 DTSER_COMPLETION (2)。 SSIS 的任务正在正确完成,但显示以下许多错误:
......删除此未使用的输出列可以提高数据流任务性能
我不确定是否可以通过修改 SSIS 或 SQL 中的某些内容来解决这个问题代理工作。我不想修改 SSIS 包,因为它是由外部源提供的。
正在 SQL Server 2008 上运行
The SQL Agent job is returning DTSER_COMPLETION (2) after running an SSIS package. The task of SSIS is completing correctly but is showing many of the following errors:
......Removing this unused output column can increase Data Flow task performance
I am not sure whether this can be solved by modifying something in SSIS or the SQL Agent job. I do not want to modify the SSIS package since it is being supplied by an outside source.
The is being run on SQL Server 2008
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SSIS 中的错误处理有点尴尬,我在正确遵循 OnError 约束并完成良好的包时遇到了问题,但 SQL 代理仍然报告失败。我的解决方案是:为“允许”失败的步骤定义 OnError 事件处理程序,然后将 Propagate 系统变量设置为 false。
如果您有太多单独的步骤而无法实现,您可以将它们分组到序列容器中,并为每个序列创建事件处理程序。它似乎对我来说工作得很好,但我花了一些时间来制定解决方案,而且我找不到任何关于 SSIS 中错误处理的好的文档,所以我不知道这是否是一个好的解决方案或只是一个 hack。
Error handling in SSIS is a bit awkward, I've had problems with packages following OnError constraints correctly and completing fine, but the SQL Agent still reports failure. My solution was: define OnError event handlers for the steps that are 'allowed' to fail, and then set the Propagate system variable to false.
If you have too many individual steps to make that practical, you can group them in sequence containers and create the event handlers for each sequence instead. It seems to work fine for me, but it took me some time to work out the solution and I couldn't find any good documentation on error handling in SSIS so I don't know if this is a good solution or just a hack.