Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys
I am new to Talend.Please help me out to solve my issue
I have multiple files in FTP server(xlsx).
Now i need to send a mail if file not exists. if file is present i need to run my job.
i used two if conditions, but that is working in opposite direction
xlsx file exists(FTP)- it is sending mail
csv file not exists(FTP) - it is sending mail.
tftpfileexist_1 ----if (order:1) !((Boolean)globalMap.get("tFTPFileExist_1_EXISTS")) --sendmail
tftpfileexist_1 ----if (order:2) ((Boolean)globalMap.get("tFTPFileExist_1_EXISTS")) ---job has to run
@Lakshmi2411,still do you have issue?
@Lakshmi2411,i have tested below one is working as expected.use below way.
((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true
((Boolean)globalMap.get("tFileExist_1_EXISTS"))==false
@Lakshmi2411,still are you facing the issue?
Hi
Plese help me out.
Even Though file exists is is send mail..
Here I am using File list,so that it can retrieve multiple files with xlsx exists or not .
@Lakshmi2411,since you can use tFilelist,but you need to iterate the flow.check the below way.
you can do the below way that
((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true && ((Integer)globalMap.get("tFTPFileList_1_NB_FILE"))>0
@Lakshmi2411,still do you have issue?
Got it.Tnks.
I wrote ((Integer)globalMap.get("tFileList_1_NB_FILE"))<0
it got worked.
@Lakshmi2411,you were wellcome.Please provide Kudos also.