Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am working on incremental Talend Job and looking for Incremental Extract logic. I did the following steps to achieve this (DB:- Oracle)
Step1. Took Max (HEADER_ID) FROM TARGET_TABLE. (header_id datatype is Number)
Step2. Then I took tJavaRow component for to assign Step1 value context variable. My Context variable name is HEADER_ID (Datatype is BigDecimal) So the assignment syntax is as below
context.HEADER_ID=input_row.HEADER_ID;
Step3. Next I have my source extract component and have below Query.
"select C1, C2, HEADER_ID FROM SOURCE_TABLE WHERE HEADER_ID > '+context.HEADER_ID+'"
Step4. Then i have tMap
Ste5. Then i have Target Objects
I am getting Error message on Step3. like '(java.sql.SQLSyntaxErrorException: ORA-01722: invalid number ....)
It seems that there is datatype mismatch but I am not sure where to Fix.
Regards
Saket Krishna