Grapg failure email notification with error

Hi,
How can I configure email notification for any graph failure with error and compnent details which caused the failure in AB Initio

Questions by Subratkm

Showing Answers 1 - 12 of 12 Answers

Milan

  • Oct 1st, 2013
 

Hi,
we can use the send mail component.

But best way to do this by putting the startup script to Plans where you re calling the graph .

In plan use send mail task and use mail -S command for sending the mail .Once the job failed the set up the error notification to unix script

  Was this answer useful?  Yes

$mpjret gives you the exit status of the graph, If the graph fails there would be the error file generated by the graph in $AI_SERIAL_ERROR directory. Get the last record for the job and send a mail for the same.

  Was this answer useful?  Yes

Rahul Rasal

  • Jan 17th, 2018
 

By using RUN component you can write script with mail utility.
Thanks ...!

  Was this answer useful?  Yes

NicoRobin

  • Jul 8th, 2020
 

You can use $mpjret variable in the end script which returns the status of the graph as below:-
if [$mpjret -eq 0]
then echo "successful execution"
else
mailx -s [graph name] failed mail-id

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions