Skip to main content
Solved

trigger mail when my workbench face error in fme forms?

  • June 19, 2024
  • 6 replies
  • 68 views

saravanakumar
Supporter
Forum|alt.badge.img+6

Hi All, 

I would like to know that

is there any possible way to trigger mail while running my workbench in FME Desktop/ Forms if it is facing a error?.

FYI : I am using FME Desktop 2020.1.1 version.

 

Thanks in advance!

Best answer by nielsgerrits

Your question is a bit broad, but in general yes.

Using the Emailer transformer it is possible to send an email initiated by a feature. So if you build in some testers (make sure to limit the input to the emailer to prevent a mailbomb) this is doable. This might only work well if the Rejected Feature Handling in the Navigator window is set to Continue Translation, else the process is terminated before the Emailer has worked.

The LogMessageStreamer can be used to pick up specific errors from the logs, which can serve as input for the emailer.

If you want to know if a complete run fails, you’ll need to start the workspace using a WorkspaceRunner, it is then possible to use the Failed outputport to initiate the Emailer.

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.

6 replies

andrewj74
Supporter
Forum|alt.badge.img+6
  • Supporter
  • June 19, 2024

there is an email sender transformer but i never had any luck in setting it up with my companies policies :/


nielsgerrits
VIP
Forum|alt.badge.img+61
  • Best Answer
  • June 19, 2024

Your question is a bit broad, but in general yes.

Using the Emailer transformer it is possible to send an email initiated by a feature. So if you build in some testers (make sure to limit the input to the emailer to prevent a mailbomb) this is doable. This might only work well if the Rejected Feature Handling in the Navigator window is set to Continue Translation, else the process is terminated before the Emailer has worked.

The LogMessageStreamer can be used to pick up specific errors from the logs, which can serve as input for the emailer.

If you want to know if a complete run fails, you’ll need to start the workspace using a WorkspaceRunner, it is then possible to use the Failed outputport to initiate the Emailer.


nielsgerrits
VIP
Forum|alt.badge.img+61

there is an email sender transformer but i never had any luck in setting it up with my companies policies :/

This can be a pain yes, but since recently it is possible to use office365 mail connection, so if you are able to fix the azure app approval with IT, you’re good to go.


andrewj74
Supporter
Forum|alt.badge.img+6
  • Supporter
  • June 19, 2024

there is an email sender transformer but i never had any luck in setting it up with my companies policies :/

This can be a pain yes, but since recently it is possible to use office365 mail connection, so if you are able to fix the azure app approval with IT, you’re good to go.

Was an ongoing battle but i got it working on FME Server, which meets my needs :)


nielsgerrits
VIP
Forum|alt.badge.img+61

there is an email sender transformer but i never had any luck in setting it up with my companies policies :/

This can be a pain yes, but since recently it is possible to use office365 mail connection, so if you are able to fix the azure app approval with IT, you’re good to go.

Was an ongoing battle but i got it working on FME Server, which meets my needs :)

I’m blessed with a team member who sees massaging IT to admit to our needs as his mission to make the world a bit better. If I had to do that myself I would probably change profession.


saravanakumar
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • June 20, 2024

Hello @andrewj74 and @nielsgerrits ,

 

Thank you for your response!

@andrewj74  I just want to take a chance if FME can do. 

@nielsgerrits  Yup. My question is bit wide. However you let me know ways and challenge of implementing 😅. 

I wished there would be Try and Catch option like programming 😅 but “WorkspaceRunner” is very informative i will check over it.