SSIS:Custom Output Filters
SSIS components will output records in up to four streams. Names and usage can be done in any manner. Filters are evaluated from the top down. A custom filter may be created based on individual need, each pin filters the records in a cascading effect, where the results code is compared against the first expression (Pin 1) and then compared against Pin 2, and so on.
Select Customer Filter from the drop down and click the ... button next to the Customer Filter Expression text box to open an Output Filter Expression dialog box. These rules use Boolean operators ("OR," "AND," and "NOT") and the result codes to construct filters. Records matching the filter will be directed to the valid table while the rest are directed to the invalid table.
A custom rule example could be: "(AS01 OR AS02)". This means that the conditions for the rules are met if either result code "AS01" or "AS02" were returned.
Validate Custom Rules
A custom expression may be tested by clicking on the "Test Expression" button. A pop-up dialog box will confirm whether or not the custom expression is acceptable.
Save as Custom Filter
Right-click the Custom Expression, then left-click Save as Custom Filter from the pop-up. Enter a name for the filter in the window and click OK. It will now be available as a Pre-Built Filter for subsequent components.
Remove Selected Rule
To remove a Pre-Built Filter, select the filter from the Pre-Built drop-down list, right-click the filter, and select Delete Filter. Click Yes. After saving this component, it will no longer be available in new component configurations.