Professional Documents
Culture Documents
Testguide 1635
Testguide 1635
Testguide 1635
Business Requirement:
Informatica PowerCenter mapping to automate the incremental extraction of source rows
using Mapping Variable functionality.
Solution URL:
https://community.informatica.com/solutions/1635
Supported Version:
PowerCenter 9.1 and 9.5
Description:
When data in a source table is frequently updated, it is necessary to capture the updated
information in the data warehouse. However, due to data volumes and load window
considerations, it is desirable to process only those records that have been updated, rather
than re-reading the entire source into a mapping.
Usually there is an update timestamp column in the source table. This column can be used
to filter the source records for reading the updated rows. This filter condition has to change
every time the mapping is run to extract only the records that were updated since the last
run. This mapping template illustrates a method of using the mapping parameter
functionality to dynamically build the filter every time the mapping run.
The mapping in this template uses a mapping parameter file, which stores the parameter
value to track and store the maximum value of update timestamp every time the session
runs. For the first run a mapping parameter file is, it can be called by mapping logic at
runtime from the second run.
When a session begins, it takes the default value of the mapping parameter for the first run
and from the second run value is taken from parameter file. When the session ends, it saves
the new value of the mapping parameter back to the parameter file, to be used the next
time the session is run.
Please rate this solution and share your feedback on Marketplace Website.
present
as a
mapplet in
Please rate this solution and share your feedback on Marketplace Website.
8. Run the workflow and observe the result Workflow Monitor. Only four rows are
considered for update since only those satisfy the condition. Observe the data in
database.
9. Execute Scripts\UpdateData.Sql in the database. Observe that first three rows are
updated. Have a look at time stamp column.
10. For the second run, edit workflow and paste the parameter file path as shown below.
11. Execute the workflow and observe the result in Workflow Monitor. Observe that only
two rows are getting updated.
Please rate this solution and share your feedback on Marketplace Website.