#1 2007-12-14 20:03:37

rrvieira
Member
Registered: 2007-09-26
Posts: 49

tSendMail and Attachments

Hi all!

Is there a way to avoid job Error when one or more files in attachment list doesn't exists?

My job generates a file when error occurs that is attached to email, but when the file doesn't exists the email fails...

*** Running TOS 2.2.1.r6584 and Java ***

Regards,

MC

Last edited by rrvieira (2007-12-14 20:07:02)

Offline

#2 2007-12-17 14:35:33

rrvieira
Member
Registered: 2007-09-26
Posts: 49

Re: tSendMail and Attachments

Anyone?

Regards,

MC

Offline

#3 2007-12-17 20:20:20

rrvieira
Member
Registered: 2007-09-26
Posts: 49

Re: tSendMail and Attachments

Offline

#4 2007-12-17 23:15:16

c0utta
Member
Registered: 2007-04-13
Posts: 134

Re: tSendMail and Attachments

Hi MC,

To answer your question, can you please supply the context of your job?  For example, are you always sending the same number of files with the same path/name?  What are your inputs and expected results?

Why not use the tFileList with a path mask - if there is one iteration then the file exists and you can store this fact in a context variable.  Maybe you can use a standard Java function (exists() ?) to determine if a file exists within a tJava or tJavaRow.

I personally wouldn't want this setting in tSendMail because I believe it encourages sloppy programming.

Cheers,

c0utta

Offline

Board footer

Powered by FluxBB