Page 1 of 2

Change Capture stage

Posted: Tue May 27, 2008 3:08 am
by Roopanwita
In change capture stage,can key columnn be a VARCHAR?(On column I m comparing value)

Posted: Tue May 27, 2008 3:30 am
by balajisr
Yes.

Posted: Tue May 27, 2008 3:31 am
by Roopanwita
I couldn't get exactly.Can it be VARCHAR or it need to be Int only

Posted: Tue May 27, 2008 3:40 am
by balajisr
Roopanwita wrote:I couldn't get exactly.Can it be VARCHAR or it need to be Int only
Key column can be varchar. What is the error you get?

Posted: Tue May 27, 2008 3:46 am
by Roopanwita
I didn't get any error,but changed record is not getting captured..

My job design is as -

src1(before)--
CC---Filter(on changed code)---insert-updt(src2)/Insert(Hist)
src2(after)--

In this I have changed some values in SRC2,still CC is unable to capture that record..

Posted: Tue May 27, 2008 3:56 am
by balajisr
What is the output of the changed records through CC. Is it Edit or Insert or any other?

Posted: Tue May 27, 2008 4:06 am
by Roopanwita
Output should be Edit,but no record is coming out of CC

Posted: Tue May 27, 2008 4:23 am
by balajisr
Roopanwita wrote:Output should be Edit,but no record is coming out of CC
In that case it should be Copy record if you had set drop copy record.

Is metadata for before and after dataset same?

Posted: Tue May 27, 2008 4:45 am
by Roopanwita

Posted: Tue May 27, 2008 5:30 am
by thumati.praveen
once check the link order and what method your using? (Example:Allkeys Explicit values,Explicit keys Explicit values like this...)

Posted: Tue May 27, 2008 5:40 am
by Roopanwita
I m using Explict Key & Values option

Posted: Tue May 27, 2008 6:06 am
by keshav0307
what is the $APT_PAD_CHAR value. for varchar columns i find it realy matters.

Posted: Tue May 27, 2008 6:10 am
by thumati.praveen
Roopanwita wrote:I m using Explict Key & Values option
The stream link should be after and refrence link should be the before in CC link order.Finally what Change code it returns identify if it is 3 then the source record was changed if it is 1 then new record.

Posted: Tue May 27, 2008 6:31 am
by Roopanwita
I coudn't find $APT_PAD_CHAR parameter.
Already I have made Ref as Bedor & Stream as After link and also set same logic (1 -insert,3 update)
But though there r changed value in reference no record is coming out of CC.

Posted: Tue May 27, 2008 6:48 am
by ray.wurlod
The environment variable name is APT_STRING_PADCHAR.