Configuring the Upstream Update Strategy Transformation
Configuring the Upstream Update Strategy Transformation
You can configure an upstream Update Strategy transformation to change the row type of the rows that the Lookup transformation receives.
When you use a dynamic lookup cache, use Update Strategy transformations to define the row type for the following rows:
Rows entering the Lookup transformation.
By default, the row type of all rows entering a Lookup transformation is insert. However, use an Update Strategy transformation before a Lookup transformation to define rows as update, or some as update and some as insert.
Rows leaving the Lookup transformation.
The NewLookupRow value indicates how the Integration Service changed the lookup cache, but it does not change the row type. Use a Filter or Router transformation after the Lookup transformation to direct rows leaving the Lookup transformation based on the NewLookupRow value. Use Update Strategy transformations after the Filter or Router transformation to flag rows for insert or update before the target definition in the mapping.
If you want to drop the unchanged rows, do not connect rows from the Filter or Router transformation to the target where the NewLookupRow equals 0.
When you define the row type as insert for rows entering a Lookup transformation, use the Insert Else Update property in the Lookup transformation. When you define the row type as update for rows entering a Lookup transformation, use the Update Else Insert property in the Lookup transformation. If you define some rows entering a Lookup transformation as update and some as insert, use either the Update Else Insert or Insert Else Update property, or use both properties.
The following figure shows a mapping with multiple Update Strategy transformations and a Lookup transformation using a dynamic cache:
In this example, the Update Strategy transformation before the Lookup transformation flags all rows as update. Select the Update Else Insert property in the Lookup transformation. The Router transformation sends the inserted rows to the Insert_New Update Strategy transformation and sends the updated rows to the Update_Existing Update Strategy transformation. Output rows that are not connected to the target are dropped. The two Update Strategy transformations to the right of the Lookup transformation flag the rows as insert or update for the target.