SSIS DataFlow任务中的错误处理 [英] Error handling in SSIS DataFlow Task

查看:93
本文介绍了SSIS DataFlow任务中的错误处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个从XML文件中插入数据的SSIS包。

使用SQL Task添加Sales头信息,然后转到DataFlowTask

使用XMLSource再次加载XML,并将子目录插入OLEDB Destination。

这里的问题是,如果DataFlowTask内部发生任何错误(截断或数据类型不匹配) ),包失败,标题行将保留在表中。

如果包失败,如何有效地添加错误处理以删除标题信息?

Hi,
I have an SSIS package that inserts data from an XML file.
The Sales header information is added using SQL Task, and it goes to a DataFlowTask
where it loads the XML again using XMLSource, and inserts the subrows to an OLEDB Destination.
The problem here is, If any error happens inside DataFlowTask (Truncation or DataType mismatch), The Package fails, and the header row will remain in the table.
How can I efficiently add errorhandling to remove the header info if the package fails ?

推荐答案

这可能对你有所帮助



如果一个失败,则回滚SSIS数据流任务 [ ^ ]
This might help you

Rollback SSIS Data Flow Tasks if one fails[^]


这篇关于SSIS DataFlow任务中的错误处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆