System.Out.Println returning null

One Star

System.Out.Println returning null

I have a piece of one job, that isn't working. It seems so straightfoward, I can't figure out what is wrong. All I'm trying to do is read a record using tOracleInput and do a System.out.println(row5.PROCESS) in a tJava component; All I get is Null. What am I doing wrong?
Thanks for your help,
Marcie
One Star

Re: System.Out.Println returning null

Use tJavaRow instead of tJava.
One Star

Re: System.Out.Println returning null

Thanks, it works now, but I've used tJava to do this on other jobs, why did I have to use tJavaRow this time?
Seven Stars

Re: System.Out.Println returning null

tJavaRow is for doing something for each row. tJava is for doing something once off; if included in a flow, it's executed before the first row.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog