Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Kaliana
Contributor III
Contributor III

Retrieving the last csv file from an FTP server

Hello,

Can you help me please?

I need to get the last D-1 file from an FTP server (sort the file into folders by year and month) then insert the data into our oracle server.

So We just need the file j-1 so for today, we must retrieve the file: RPT.STR.KM.CSV.24-20210208-24-STR.FUELSENSOR

Thanks for your help.

Labels (3)
2 Replies
JSey
Creator
Creator

Hi

 

You can use a tfilelist component to create a mask for the filenames, then you can order it by filename or modified date. If the tfile list component is in a different subjob than your tfileinputdelimited, then it will only process the last file, which will be the last file if you sort it by date ascending.

Kaliana
Contributor III
Contributor III
Author

0693p00000BXciSAAT.pngHi,

Thanks for your help.

Thank you for your help. I have found another solution.