Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 SSIS 中使用 7zip 提取 zip 文件。问题是源可能包含无效的 zip 文件。有没有办法在 SSIS 中捕获无效的 zip 文件,以便跳过该文件并处理下一个文件?
您正在寻找的是一个错误处理程序,它不会将其错误传播到其父容器。
本文是有关如何实施的出色指南:
http://sqlblog.com/blogs/rushabh_mehta/archive/2008/04/24/gracefully-handing-task-error-in-ssis-package.aspx
具体来说,它解释的是如何将您的执行流程任务放入序列容器中,并在序列容器上设置错误处理,以便在那里发生的任何错误都不会在您的 foreach 或 for 循环中引发错误。