Skip to main content
Question

How to Retrieve Error Messages During Translation and Send via Email (FME Form)


izabreton
Contributor
Forum|alt.badge.img+3

Hi everyone,

I'm working in FME Form (not FME Server), and I would like to capture any error messages that occur during translation and send them via email using the Emailer transformer.

I tried using the LogMessageStreamer transformer, but it seems that it doesn't capture error messages — only warnings and general log info.

Is there a way to retrieve the error messages (or even the full log) during a translation, and pass them into the Emailer transformer?

I'm looking for a solution that works within FME Form. Any ideas or best practices would be greatly appreciated!

Thanks in advance,
Isabelle

4 replies

david_r
Evangelist
  • April 8, 2025

The easiest is probably to use a secondary workspace that executes the workspace using a WorkspaceRunner transformer. The “Failed” port of the WorkspaceRunner can then be used to trigger an Emailer transformer.


takashi
Influencer
  • April 8, 2025

To add to David’s solution, if you create a user parameter linked to Workspace Parameter/Logging/Log File in the original workspace, you can create a feature attribute that stores a log file path in the second workspace, pass it to the Log File parameter of the original workspace through the WorkspaceRunner, and then attach the log file to the email if the translation failed.


izabreton
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • April 8, 2025

Thanks! I will have a look. And in FME server, could I filter the logs to get only the ones related to this workspace? A trigger that would send an email if an error occurs within that workspace?


gistech_
Contributor
Forum|alt.badge.img+4
  • Contributor
  • April 8, 2025

yes you could! you would need to configure an automation to run the workspace  and connect the failed port to email action.

just be sure to configure the email body of the email action to refer error msg / error type parameter using the text editor


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