• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Question about tMap and some information associated with it

#1 2012-07-12 03:11:34

yoo9189
New member
Registered: 2012-06-21
Posts: 5

Question about tMap and some information associated with it

Hi,

I have a simple import job

so the sequence is like this

tMysqlInput -> tMap -> tOracleOutput

and what I would like to do is, I would like to some how keep track of what is the latest data (variable) is getting processed.

and I would like to access these information outside the subjob there

so what I would like to do is

tMysqlInput -> tMap -> tOracleOutput
     |
     | (onSubJobError)
     v
tJava (maybe printout which variables the process is getting stuck on)

and exactly what I said above when there is an error in importing to Oracle, I would like to either throw an exeception or error message, with which data it failed on.

If you can help me on this issue that would be great

Thanks

Offline

#2 2012-07-12 04:26:56

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Question about tMap and some information associated with it

Hi

According to your description, I think you might select "Insert or Update" action on table of tOracleOutput and then you can get both main rows, rejects rows.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-07-13 00:38:47

yoo9189
New member
Registered: 2012-06-21
Posts: 5

Re: Question about tMap and some information associated with it

Hi,

Thanks for the tip, so say when you input some data into oracle and oracle returns a error

for example : ORA-01407 error where you try to set a value to null on Not-nullable column

so when we use tLogRow on reject, then it shows some information, but I would very need to customize this (perhaps show more variables associated with that rejected entry ... etc)

and from code I see where tLogRow is triggered and etc. however since we cannot customize, what can I do?

I tried tJAVA, but it is not putting the code in place where I exactly want it to be.

b/c the printing in tLogRow occurs in [tLogRow_x main] start body part where tJava writes code in [tJava begin part] of it

If there are any other references, please let me know.

Thanks

update : now I am trying like this

tMysqlInput -> tMap -> tOracleOutput ----> main -> tLogRow
                                                         |
                                                         |
                                                         ---> reject -> tMap (customizing formats) -> tLogRow

is this a better idea?

Last edited by yoo9189 (2012-07-13 00:46:38)

Offline

#4 2012-07-13 04:00:24

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Question about tMap and some information associated with it

Hi

According to your description, you might use tMap or tJavaRow.
They both work.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Question about tMap and some information associated with it

Board footer

Powered by FluxBB