Skip to main content
Solved

How to make sure emailer works AFTER translation?

  • November 17, 2017
  • 4 replies
  • 13 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?

View original
Did this help you find an answer to your question?

4 replies

david_r
Evangelist
  • Best Answer
  • November 17, 2017

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


rylanatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • 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.


david_r wrote:

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
Evangelist
  • November 21, 2017
avanbijleveld wrote:
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.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings