Question

I am currently working on a job something like this

enter image description here

The design is to,extract some data from customers,(say first name,last name) to one excel file,other data (say address) is to goto other excel file,i added a identity to tMap Numeric("s1",1,1) but it is starting from 1,3,5,7,9,11,13.... and on other excel it getting 2,4,6,8,10,12,...

but i need both excel to have same identity 1,2,3,4,5,6,....N

so that i can map the records

so can somebody guide me on this?

edit:

The autoincrement returns 1,2,3,4,5,6,... this is fine when thers only one tMap component in the job,but not similar when 2 tMaps are used ?

Was it helpful?

Solution

This is because the numeric sequence is static. Since you have only one sequence called "s1", it will be incremented twice at every iteration (one time for each tMap it's invoked in).

Just use some unique labels (ie. "s1" and "s2") to force the use of two independent sequences, thus the solution of your problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top