How to overwrite tFileOutputDelimited file if exists

Five Stars

How to overwrite tFileOutputDelimited file if exists

is there any option to overwrite existing file when using tFileOutputDelimited. I only see Append.

 

thank you!

 


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: How to overwrite tFileOutputDelimited file if exists

Untick both options Append and Error if file exists (or something like that)

TRF

All Replies
Fifteen Stars TRF
Fifteen Stars

Re: How to overwrite tFileOutputDelimited file if exists

Untick both options Append and Error if file exists (or something like that)

TRF
Five Stars

Re: How to overwrite tFileOutputDelimited file if exists

I want the new file to overwrite if the such file already exists. I don't want the job to error out.

Highlighted
Five Stars

Re: How to overwrite tFileOutputDelimited file if exists

I see what you are saying. I unticked both options and it worked. thanks so much.
One Star

Re: How to overwrite tFileOutputDelimited file if exists

 
Five Stars

Re: How to overwrite tFileOutputDelimited file if exists

Hi,

 

I don't see that option in the tFileOutputDelimited! Could you please tell me where that untick option?

Employee

Re: How to overwrite tFileOutputDelimited file if exists

@SMYTalend 

 

Here you go!

image.png

 

image.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Five Stars

Re: How to overwrite tFileOutputDelimited file if exists

Thank you. I have a requirement like this.. I need to capture the rejected rows by applying multiple rules/conditions, here I want to append the rejected columns with 2-4- tmap reject criteria, so I will not be knowing which tmap has generated rejected rows, so I need  to enable the append in all the reject criteria by writing to the same file. This is working fine but when running for the second time again same data gets appended instead of writing fresh into the file, for now what I have done is added a tFileDelete at the beginning, so it is creating a fresh file though append is enabled  in all the tFileoutputDelimited component.

 

May be some other way may also be there, if so please advice.

What’s New for Talend Spring ’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