Selecting latest excel file from folder in a Talend job

Highlighted
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! ~

View solution in original post


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! ~

View solution in original post

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?

Eight 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.

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 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog