Create a file with the tMap reject

Highlighted
Six Stars

Create a file with the tMap reject

Hi everyone,

 

I'm using the expression filter in the tmap component and then create two delimited files ( one output and another with the rejects ).

Is there a way to make the tmap create only one of the files ?

For example if a line is rejected the job creates a reject.csv only and if everything is OK it creates the output.csv

 

Hope it's clear.


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: Create a file with the tMap reject

I'm afraid you have to check this after the tMap component.

Using tFileRowCount you can know how rows there is in each file and decide the one you have to delete or not.


TRF

View solution in original post


All Replies
Highlighted
Sixteen Stars
Sixteen Stars

Re: Create a file with the tMap reject

I'm afraid you have to check this after the tMap component.

Using tFileRowCount you can know how rows there is in each file and decide the one you have to delete or not.


TRF

View solution in original post

Highlighted
Six Stars

Re: Create a file with the tMap reject

Thank you for your answer,

That's what i'm doing I just thought maybe there was another way.

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog