Forum Discussion

Kullay's avatar
Kullay
New Contributor III
6 years ago

Send a error file using the Email sender

Hi All,

When we are executing the main pipeline, we are getting an error and the same error we are storing in Error handling pipeline file writer.

We need to send an Email notification with that error file as an attachment.

Thanks,
kullayappa

6 Replies

    • Kullay's avatar
      Kullay
      New Contributor III

      Hi dmiller,

      Thanks for update, still we are facing below issues, please help me on this.
      When we are using the as per the document format for attachement, we are not able to attached the file,

      2 Step: When we are used this file name <<TestingEmail.json>> Its getting the old file, not current file.

      Thanks,
      kullayappa

      • rohithmadhavan's avatar
        rohithmadhavan
        Employee

        @Kullay There’s a race condition in this pipeline design if the File Writer Snap is writing to TestingEmail.json. Since the File Writer and Email Sender Snaps are disconnected, their relative order of execution isn’t guaranteed. I would suggest connecting the File Writer’s output view to the Email Sender’s input view as shown below.