0% found this document useful (0 votes)
54 views14 pages

Update Strategy Transformation: Basics and Advanced Concepts

This document discusses update strategies in data transformation. An update strategy is an active transformation that flags rows as inserts, updates, deletes, or rejects based on an expression. It can be used within mappings to transform source data according to target requirements. When configuring a session, the treat row as option can be used to set the overall update behavior. The document provides details on creating an update strategy transformation in a mapping and examples of expressions for flagging rows.

Uploaded by

Rakesh Bobbala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views14 pages

Update Strategy Transformation: Basics and Advanced Concepts

This document discusses update strategies in data transformation. An update strategy is an active transformation that flags rows as inserts, updates, deletes, or rejects based on an expression. It can be used within mappings to transform source data according to target requirements. When configuring a session, the treat row as option can be used to set the overall update behavior. The document provides details on creating an update strategy transformation in a mapping and examples of expressions for flagging rows.

Uploaded by

Rakesh Bobbala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

UPDATE STRATEGY

TRANSFORMATION

Basics and Advanced Concepts


TRANSFORMATIONS

► Transformations help to transform the source data according to the


requirements of target system and it ensures the quality of the data
being loaded into target.
► Transformations are of two types:
1) Active
2) Passive
Update Strategy transformation

► Update transformation is an Active and Connected


transformation. An Update strategy is used if you want to Create
a strategy for your processing such as Insert, Update, Delete or
Reject

► An Update strategy is generally used when we have determined


whether we want to keep the historical data or just the most
recent changes
SETTING THE UPDATE STRATEGY

► WITHIN THE MAPPING ► CONFIGURE A SESSION

► Rows are flagged for We can select the


insert,update,delete or reject insert,delete,update option for
within the mapping using a the Treat Row as option in
update strategy the Session Properties
transformation
To create a Update Strategy transformation in a Mapping :

► In the Mapping Designer, choose Transformation-Create. Select the Update


Strategy transformation. Enter a name for the Rank. The naming convention
for Update transformations is UPD_TransformationName.

► Click Create, and then click Done.


The Designer creates Update transformation.

► Link columns from an input transformation to the Update transformation.


► Click on the button in the Update Strategy Expression Field

► Enter an update Strategy expression to flag rows as


INSERT,DELETE,UPDATES OR REJECTS.

► Validate the Expression

► Click ok
Flagging Rows within a Mapping

FLAGGING ROWS WITHIN MAPPING

Operation Constant Numeric value


Insert DD_INSERT 0

Update DD_UPDATE 1

Delete DD_DELETE 2

Reject DD_REJECT 3
FORWARDING REJECTING ROWS

► By default the update Stratetgy forwards the rejected rows to the


next Transformation.

► The Power Center Server flags the rows for reject and writes them
in the SESSION REJECT FILE

► IF we do not select the Forward Reject Rows Option, the Power


Center Server drops the rejects rows and writes them to the
session log File
Update Strategy Used in the Mapping

► Figure 11-1. Sample Mapping with a Update


StrategyTransformation
Setting Update For a Session
Options for Treat Source Rows as Setting

Ports Description
► Insert Treat all rows as Inserts .If Target has Primary key
constraint Power Center server rejects the row.
► Delete Treat all rows as Deletes .If Power Center server finds the
corresponding row in Target it deletes it.

► Update Treat all rows as Update.For each row , the Power Center
looks for a matching Primary key and updates
the row.

► Datadriven If the mapping for the session contains an update


strategy then this option is default.
Thank You !!!

You might also like