Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
VijayTalend
Contributor
Contributor

Send email if file is not received in folder at 10 AM

Hi,

 

My requirement is as follows -

 

Check file server folder at 10:00 AM every day. If no filename containing “TEST*.XML” is received in file server folder then send mail to an email id.

 

Can you please let me know how to develop it in Talend studio.

 

Regards

Labels (3)
4 Replies
krishu
Contributor II
Contributor II

Hi Vijay

 

There is a component tFileExist, using this you can check whether the file exists in the folder or not. After tFileExist component link to tSendEmail component with the runif expression as 

!((Boolean)globalMap.get("tFileExist_1_EXISTS")). Hope this should work.

 

Regards

Krishu

VijayTalend
Contributor
Contributor
Author

Hi,

Thanks for your reply. It works to check file available or not.

 

My requirement is to check whether any file came between 11:15 to 14:15 or not. If file did not come, then send the email. Can you suggest how to achieve this

Jaggu1992
Contributor
Contributor

Hi Vijay,

 

we can do this scenario in two ways.

One process is through TAC(Talend Administration Center) through triggers.

And another way is through "Task Scheduler " .

Please try any one process then you can have any idea to do it.

 

Thanks,

Jagan.

Jaggu1992
Contributor
Contributor

Hi Vijay,

 

You can create your job design like this...

 

Tfilelist------->titeratetoflow-------->tfileoutputdelimited

runif

Tsendmail

(In tsendmail component you have provide  code in message box to get filename and in basic settings

you have change to plain text .)

 

Thanks,

Jagan.