Selecting latest excel file from folder in a Talend job

Four Stars

Selecting latest excel file from folder in a Talend job

Hello everyone,

 

We receive excel file every month from 3rd party vendor which has demographic information of customers and we store them to a specific folder. I am creating a Talend job where I want to select the latest excel file from that folder. Please let me know what components/ logic should I use to achieve this. Thanks a lot in advance for your help !!!


Accepted Solutions
Six Stars

Re: Selecting latest excel file from folder in a Talend job

Here's an article that describes a solution to your problem!

https://umeshrakhe.wordpress.com/2015/03/03/how-to-get-latest-file-from-directory/

 

Thanks!

~ ````Please don't forget to give "kudos" when a reply is helpful and click "Accept the solution" when you think you're good with it. Thanks! ~

All Replies
Six Stars

Re: Selecting latest excel file from folder in a Talend job

Here's an article that describes a solution to your problem!

https://umeshrakhe.wordpress.com/2015/03/03/how-to-get-latest-file-from-directory/

 

Thanks!

~ ````Please don't forget to give "kudos" when a reply is helpful and click "Accept the solution" when you think you're good with it. Thanks! ~
Four Stars

Re: Selecting latest excel file from folder in a Talend job

Thanks Vineet for sharing the link, really useful. my next question is at the output this just giving me latest file name. My goal is to select the excel file as input file for further processing. Which Talend function can I use to select the latest file?

Seven Stars

Re: Selecting latest excel file from folder in a Talend job

Depends on your use case. Try tFileInputExcel or custom Excel components, and pass the file name into that component.