ETL SSIS : Redirecting error rows to a seperate table

99封情书 提交于 2019-11-29 22:07:39

问题


I am working on a package that contains a Source, about 80 lookups and 1 destination.

The data in the source table is not consistent enough and hence my package fails very often.

Is there a way by which I can transfer all the rows which are giving at the time of inserting them in destination table?

For eg. I have 5 rows in Source and out of which 1st and 4th will give error. Now the result should be that 2nd, 3rd and 5th should go in destination but 1st and 4th should be stored in some flat file or a db table.

Thanks in advance


回答1:


You can create a second OLE DB Destination and direct the red arrow from your Data Conversion task to this destination. Then choose Configure Error Output in your Data Conversion task and choose Redirect row as an option for all Errors/Truncations. Finish the new destination mapping and you're done: data that is correct should now go to your first destination (green arrow) and incorrect data should go to your second destination (red arrow).



来源:https://stackoverflow.com/questions/11628352/etl-ssis-redirecting-error-rows-to-a-seperate-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!