Question

error handling in FME Server

  • 28 January 2020
  • 2 replies
  • 62 views

Hi :)

 

 

I have a question - how do you handle errors of workspaces on FME Server (connected to data, or workspace errors not with FME Server)? My question is connected with the fact that none of the final users of scripts published on FME Server are familiar with FME, and that FME Server logfiles aren't that legible, so I would like to write my own error messages that are simple and easy to understand for final users.

 

The perfect solution would be that author of script would be able to write conditional error messages - If this goes wrong send that to user.

 

Is it possible? Do you know how to achieve something like this (or something similar) ?

2 replies

Userlevel 4

For critical error handling, I often use notifications for this, often coupled to an emailer subscription:

https://docs.safe.com/fme/html/FME_Server_Documentation/ReferenceManual/Notification_Service.htm

Starting with FME 2019 you can also use Automations:

https://docs.safe.com/fme/html/FME_Server_Documentation/WebUI/Automations-General/Automations.htm?Highlight=automations

 

Userlevel 5
Badge +25

It depends on what you want your workspace to do but you could for example register it with a Data Streaming service and use that to send messages to the user while doing the actual writing of data using FeatureWriters.

Another option would be to use custom messages in the Logger and/or Terminator at certain points in your workflow, but those would end up in the overall log in between the FME stuff so probably not what you want your users to work through. Connect them to, for example, <rejected> ports to do basic error handling.

Automations can be useful too as you can connect different actions to succesful or unsuccesful completion of a workspace.

Reply