Académique Documents
Professionnel Documents
Culture Documents
About
interface - development.com is the source for data integration expertise that provides customers valuable, convenient
and relevant experiences through a diversity of products and services. The main orientation of the project is to
respond to the increased demand for applications and services to help successfully building data integration solutions
and deliver the results developer and organization expects.
Matthias Urech, founder 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.
Copyright
Copyright © 2005 - 2009 interface - development.com. All Rights Reserved.
No parts of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any
means – electronic, mechanical, photocopying, or otherwise – without the prior written permission of the author.
Trademarks
Designations used by companies to distinguish their products are often claimed as trademarks or registered
trademarks. In all instances in which interface-development.com, the author or publisher is aware of claim, the
product names appear in initial capital or all capitall letters. Readers, however, should contact the appropriate
companies for more complete information regarding trademarks and registration.
Article History
April 8, 2005 First Edition.
July 20, 2010 Second Edition.
Table of Contents
Introduction ................................................................................................................................................ 1
Analyzing the problem................................................................................................................................. 1
Walkthrough: Using dynamic lookup cache ................................................................................................ 2
Step 1: Creating Source and Source Qualifier 2
Step 2: Creating Target 3
Step 3: Filter inactive records 3
Step 4: Sorting records for latest change 4
Step 5: Lookup target data 5
Step 6: Flagging data for insert or update 6
Step 7: Creating Workflow and Session 6
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:
• Sort data by attribute OBJECT_ID, CHANGE_DATE, CHANGE_NO
• Use dynamic lookup cache to determine if current records exists in target
• Flag record to force insert or update in target
• 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)
3. Add Source and Source Qualifier to your mapping and connect the ports
6. Note: The Informatica Server assigns a value to the port, depending on the action it performs to the lookup
cache:
NewLookupRow Value Description
0 The Informatica Server inserts the row into the cache.
1 The Informatica Server inserts the row into the cache.
2 The Informatica Server updates the row in the cache.
Table 1: NewLookupRow values
7. Select all ports of the Update Strategy transformation and connect them to the Target
8. Save your mapping m_USING_DYNAMIC_LOOKUP_CACHE