You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

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

Reported at BugTracker as "Feature".
[Bugtracker, feature 2652, fixed] tSendMail crashes when attached file doesn't exist
MC
Offline

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
Pages: 1