tMAP Filter - two conditions

One Star

tMAP Filter - two conditions

I am attempting to use a tMap component (Java) and filter the output row by two conditions:
row5.COID.equals("8417") && !(row5.Debit.equals("000000000000"))
This tMap will have multiple outputs defining multiple COIDs (8417, 8090, etc.) along with Debits and Credits. This will take one input stream consisting of multiple COIDs, Debits and Credits and create multiple output streams:
8417Debit
8417Credit
8090Debit
8090Credit
The syntax above fails with "NullPointerException". The filter works with either condition alone, but not combined.
Thanks,
Jim
Community Manager

Re: tMAP Filter - two conditions

Hello Jim
1) If you know java knowledge, press Ctrl+Shift+R to open the java file: yourJobName.java, then debug the job to see where the exception throws.
2) Show us the whole exception info and upload some screenshots of your job.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads