[resolved] Ignore/Delete rows in output if a field matches a certain value

Five Stars

[resolved] Ignore/Delete rows in output if a field matches a certain value

Hi, I'm transforming an input file to an output file using a tMap.
There is a field in the input file that, if it contains a certain character, the row should not be included in the outfile. How would I do this?
Ie: if FLAG == "G", don't include the row.
I could hypothetically create an if statement for every column, but there are too many columns for that to be practical and I'm sure another solution exists.

Accepted Solutions
Seventeen Stars

Re: [resolved] Ignore/Delete rows in output if a field matches a certain value

I am not sure about I Understood you correctly because the solution sounds so easy:
Use the filter in the tMap. You will find them on the top of every output flows and on the bottom on every input flows.
It is an arrow symbol. You can drag & drop the input columns to it and use Java expressions to filter.

All Replies
Seventeen Stars

Re: [resolved] Ignore/Delete rows in output if a field matches a certain value

I am not sure about I Understood you correctly because the solution sounds so easy:
Use the filter in the tMap. You will find them on the top of every output flows and on the bottom on every input flows.
It is an arrow symbol. You can drag & drop the input columns to it and use Java expressions to filter.
Five Stars

Re: [resolved] Ignore/Delete rows in output if a field matches a certain value

I am not sure about I Understood you correctly because the solution sounds so easy:
Use the filter in the tMap. You will find them on the top of every output flows and on the bottom on every input flows.
It is an arrow symbol. You can drag & drop the input columns to it and use Java expressions to filter.

Oh wow, this is exactly what I needed. I knew the solution was easy, I just couldn't find it on my own and a search for it turned up no results. Thanks a lot for the reply.

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

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download