#1 2008-01-24 14:45:04

takata
Member
Registered: 2007-12-17
Posts: 16

problem with tJavaRow

hi everybody,
I want to load data from a database to another... but I should test if the seond database is empty or not...I find this solution but it didn't work...I don't understand  the errors...
Can u help me please ?

I work with TOS 2.2 and java...


Uploaded Images

Offline

#2 2008-01-24 16:04:48

cantoine
Talend team
Registered: 2006-09-19
Posts: 719
Website

Re: problem with tJavaRow

Hi,

In your case, you must instanciate every columns of your OutputSchema from your InputSchema.
You have specified your output for "output_row.utcstamp" but not for others.

My advice is to remove the tJavaRow component, and you write your conditional expression directly in the mapper :

In utcstamp column (output of your tMap_2 component) : row10.count == 0 ? 0 : row10.utcstamp

You can see following Screenshots.

Regards;


Uploaded Images

Offline

#3 2008-01-24 16:20:34

takata
Member
Registered: 2007-12-17
Posts: 16

Re: problem with tJavaRow

ok thanks

Offline

Board footer

Powered by FluxBB