首页 > 其他 > 详细

Lookup 组件异常

时间:2015-09-02 20:35:08      阅读:496      评论:0      收藏:0      [点我收藏+]

Lookup组件有两个数据源,一个是上流组件的输出,一个是组件lookup的数据源,这个数据源是在Connection选项卡中进行配置。在开发package的过程中,我发现一个异常,当Lookup数据源没有返回数据时,会产生异常。异常信息如下:

[Lookup [2]] Error: Row yielded no match during lookup.
[Lookup [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Lookup" failed because error code 0xC020901E occurred, and the error row disposition on "Lookup.Outputs[Lookup Match Output]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

 

异常发生的原因是没有处理好no match entries的输出,将Specify how to handle rows with no matching entries指定为Fail component。

技术分享

Workaround:将没有匹配上的数据行重定向到no macth output。

在General选项卡中,将Specify how to handle rows with no matching entries 指定为 Redirect rows to no match ouput.

技术分享

Lookup 组件异常

原文:http://www.cnblogs.com/ljhdo/p/4779315.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!