在SSIS中,使用lookup transformation时候,如果将“NoMatchBehavior"设置成为”Treat rows with no matching entries as errors.“,那么会导致使得整个task fail的情况,如果将这个属性设置为”Send rows with no matching entries to the no match output.“则不会导致task失败。
举例:
[Lookup [1]] Error: Row yielded no match during lookup.
[Lookup [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "component "Lookup" (1)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Match Output" (3)" 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.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Lookup" (1) failed with error code 0xC0209029 while processing input "Lookup Input" (2). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
在"Lookup Transformation Editor"中,设置”specify how to handle rows with no matching entries"为"redirect rows to no match output"等同于将“NoMatchBehavior"设置为”Send rows with no matching entries to the no match output.“;如果将”specify how to handle rows with no matching entries"为”fail component",那等同于将“NoMatchBehavior"设置成为”Treat rows with no matching entries as errors.“,那么会导致使得整个task fail。