Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am currently trying to get/copy a daily file ".csv" from a folder.
The original file name is "PES_2025032903202000.csv". and is generated every day.
I want Talend to identify the file based on the string 20250329 (YYYYMMDD).
Can someone tell me which expression to build in the "Expression builder".
I have this expression for the moment but it only works if the original file is "PES_20250329.csv"
"PES_"+TalendDate.formatDate("yyyyMMdd",TalendDate.getCurrentDate())+".csv"
Many thanks for your help.
Olivier
I see you are using the tFileCopy component. Try this job design:
The tFileList gets the list of files and the Iterate invokes the tFileCopy for each file with the current date.
Excellent ! It works fine .
Many thanks for your help
Hello,
I tried "PES_"+TalendDate.formatDate("yyyyMMdd",TalendDate.getCurrentDate())+"*.csv"
Here is the error code i have
PES_20250331*.csv" does not exist or is not a file.
tFileCopy_1 Illegal char <*> at index 75:
kind regards
Make sure that you have the "Use Glob..." checked as shown in the image.
The syntax is correct. Here is the result:
I see you are using the tFileCopy component. Try this job design:
The tFileList gets the list of files and the Iterate invokes the tFileCopy for each file with the current date.
Excellent ! It works fine .
Many thanks for your help