Page 1 of 1

Message Handle Warnings at Sequence Job Level

Posted: Fri Sep 02, 2011 6:00 am
by ravij
Hi All,

I am using Command Acitivty in Sequence job, in that using ls command to listing the File. If it does not find a file in the mentioned path, its giving one warning message like
Command ls -1 did not finish OK, reply = '2'
.
Because of the warning, sequence job getting aborted. I want to handle this message but i didn't find any option to do so.
Can some one help me how to handle or restrict the warning.

Thanks in advance.
Ravi

Posted: Fri Sep 02, 2011 7:28 am
by chulett
There are no "message handlers" for Sequence jobs, if that is what you are looking for. One option is to turn off the "automatically handle" compilation option as that is what is aborting the sequence - it handles all non-zero return codes as failure. However, if you handle the failure then it won't bother to. Use two triggers from the Command stage, one "OK" and one "Otherwise" and that should give you full control over the fate of the command.

This is documented, btw.