Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
FSternberg
Contributor III
Contributor III

Delete files older than 15 days

Hello, I am trying do one job to delete the zip files older thank 15 days.

I am used the job as in attached for it but the process is cleaning all files and the condition in Tmap component is not working.

The expression that I am using is: ((TalendDate.getCurrentDate()).getTime() - (Long)row1.mtime) > (15 * 24 * 3600000) 

I don´t where is the error in Tmap and if you can help me thank you.

Labels (3)
3 Replies
gjeremy1617088143

Hi, you have to set your condition in the tMap output filter expression and not in the field of the output.

Send me love and kudos

FSternberg
Contributor III
Contributor III
Author

hello, please could you send me one print or where I change the expression please?