In the dropdown 'Specify how to handle rows with no matching entries' I see 4 options to choose from:
In the API I see only two options:
This code accepts only 0 and 1:
lookupWrapper.SetComponentProperty("NoMatchBehavior", 1);
When I set the property to Ignore Failures, in the XML I see this
<property
dataType="System.Int32"
description="Specifies ..."
name="NoMatchBehavior"
typeConverter="LookupNoMatchBehavior">1</property>
<property
How to set a Lookup transformation to ignore failures in the API?
Update:
I compared all the differences in the resulting XML when I selected different options. There are two places that differ, in the lookup's NoMatchBehavior property and in the "Lookup Match Output" property errorRowDisposition.
errorRowDisposition NoMatchBehavior
Fail Component "FailComponent" 0
Ignore Failure "IgnoreFailure" 0
Redirect To No Match - 1
Redirect To Error "RedirectRow" 0
After this, sorting out the code is easy.
...
lookupWrapper.SetComponentProperty("NoMatchBehavior", 0);
...
lookupMatchOutput.ErrorRowDisposition = DTSRowDisposition.RD_IgnoreFailure;
...
To set a Lookup transformation to ignore failures in the API we need two things.
...
lookupWrapper.SetComponentProperty("NoMatchBehavior", 0);
...
lookupMatchOutput.ErrorRowDisposition = DTSRowDisposition.RD_IgnoreFailure;
...