August 15, 2023

Scenario: Email on error – Docs for ESB 6.x

Scenario: Email on error

This scenario creates a three-component Job which sends an email to defined recipients
when an error occurs.

Use_Case_tSendMail.png
  • Drop the following components from your Palette to the design workspace: tFileInputDelimited, tFileOutputXML, tSendMail.

  • Define tFileInputdelimited properties.
    Related topic: tFileInputDelimited.

  • Right-click on the tFileInputDelimited
    component and select Row > Main. Then drag it onto the
    tFileOutputXML component and release when
    the plug symbol shows up.

  • Define tFileOutputXML properties.

  • Drag a Run on Error link from tFileDelimited to tSendMail component.

  • Define the tSendMail component
    properties:

Use_Case_tSendMail1.png
  • Enter the recipient and sender email addresses, as well as the email
    subject.

  • Enter a message containing the error code produced using the corresponding
    global variable. Access the list of variables by pressing Ctrl+Space.

  • Add attachments and extra header information if any. Type in the SMTP
    information.

Use_Case_tSendMail2.png

In this scenario, the file containing data to be transferred to XML output cannot be
found. tSendmail runs on this error and sends a
notification email to the defined recipient.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x