Professional Documents
Culture Documents
Dynamic Lookup Cache Example
Dynamic Lookup Cache Example
Applies to:
Informatica PowerCenter
Summary
This article outlines the possibility to eliminate duplicate records by using a dynamic lookup cache.
Author Bio
Author(s): Matthias Urech
Company: interface-development.com
Created on: August 21, 2009
Matthias Urech, founder and project leader of interface - development.com, has a proven track
record of applying data integration solutions for several companies across the industry. He
played a key role to implement projects in the area of data integration, data migration, data
consolidation and data warehousing.
Matthias contributed several articles about data integration best practices for Informatica
Technology Network, resulting in nomination as member of developer wall of fame and
receiving an award as contributor of the year in 2008.
Table of Contents
Introduction .........................................................................................................................................................2
Analyzing the problem ........................................................................................................................................2
Walkthrough: Using dynamic lookup cache........................................................................................................3
Step 1: Creating Source and Source Qualifier .............................................................................................................3
Step 2: Creating Target................................................................................................................................................4
Step 3: Filter inactive records.......................................................................................................................................4
Step 4: Sorting records for latest change.....................................................................................................................5
Step 5: Lookup target data...........................................................................................................................................6
Step 6: Flagging data for insert or update....................................................................................................................7
Step 7: Creating Workflow and Session.......................................................................................................................8
http://technet.informatica.com
1
Introduction
This article will dive into the deep blue of using a dynamic lookup cache that inserts and updates rows in the
cache as it passes rows to the target.
The example used in this article is dealing with the issue that a status is stored multiple times in the source
system without flagging the actual record. We will analyze the problem and go step by step in building a
solution by using dynamic lookup cache and storing only the actual status in the target.
Given the fact that we know the pattern, we are able to roughly draw the solution:
Once the solution has been built and ran, the yellow marked records in Figure 1 are reflecting the result (=
unique value for each OBJECT_ID)
http://technet.informatica.com
2
3. Add Source and Source Qualifier to your mapping and connect the ports
http://technet.informatica.com
3
2. Create physical target in your preferred database by running the create table statement
3. Add the Target to your mapping
Step 3: Filter inactive records
To filter inactive records:
1. Add a Filter transformation to your mapping
2. Select all ports of the Source Qualifier and drop them into the Filter transformation
3. Edit the transformation and specify the values in tab Properties as follows:
http://technet.informatica.com
4
http://technet.informatica.com
5
http://technet.informatica.com
6
Note: The Informatica Server assigns a value to the port, depending on the action it performs to the
lookup cache:
NewLookupRow Value
Description
6. Select all ports of the Update Strategy transformation and connect them to the Target
7. Save your mapping m_USING_DYNAMIC_LOOKUP_CACHE
http://technet.informatica.com
7
http://technet.informatica.com
8
http://technet.informatica.com
9