Skip to main content
Solved

How to make sure emailer works AFTER translation?

  • November 17, 2017
  • 4 replies
  • 34 views

I have a workbench which produces a zipped file, and I want to use the Emailer to send this ZIP in a mail. I've tried the solution of @aaronkoning in this thread:

https://knowledge.safe.com/questions/4963/sending-mail-in-fme-desktop.html

But for some reason the Emailer tries to send when the zip is not created yet. Obviously I want the Emailer to wait until the zip is created. How can I achieve that?

 

Best answer by david_r

Are you only using FeatureWriters, or are you also using "classic" writers?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • November 17, 2017

Are you only using FeatureWriters, or are you also using "classic" writers?


rylanatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • 671 replies
  • November 17, 2017

Hi @avanbijleveld, maybe try using the FeatureHolder transformer before the Sampler? If you are using FeatureWriters, maybe one is completing first and triggering the Emailer. The FeatureHolder should force the wait until all others are complete.


  • Author
  • 1 reply
  • November 21, 2017

Are you only using FeatureWriters, or are you also using "classic" writers?

Thanks for your remark! I was not aware of the FeatureWriter, as I've only recently had the upgrade from FME2011 to FME2017. But the solution was using the FeatureWriter instead of the "classic" writers, and linking the Emailer to the Summary-port.

 


david_r
Celebrity
  • 8394 replies
  • November 21, 2017
Thanks for your remark! I was not aware of the FeatureWriter, as I've only recently had the upgrade from FME2011 to FME2017. But the solution was using the FeatureWriter instead of the "classic" writers, and linking the Emailer to the Summary-port.

 

The issue is that the regular writers can continue writing for quite some time after the last transformer has terminated, which means that the Emailer may send out a mail before all the data has been written.

 

By using the FeatureWriters you're effectively forcing FME to finish all the writing before continuing at the Summary port, which makes it a much better option for this scenario.