Skip to main content

Hello, 

I would like to set up a notification so that every workspace that failed on FME Server will send an email.

 

I have set the configuration the Subscriptions 

Notification Subscription - FME Serveralong with changes on the file fmeserverconfig.txt

FmeserverConfigHowever, I received an email with 

FME transformation job 5237 failed. 

while instead I would like to receive something like this json 

 {"id": "3", "requestKeyword": "JOB_SUBMITTER_SERVICE", 
 
 "timeFinished": "Mon-15-Aug-2011 02:04:20 PM", 
 
 "timeRequested": "Mon-15-Aug-2011 02:04:20 PM", 
 
 "timeStarted": "Mon-15-Aug-2011 02:04:20 PM", 
 
 "LogFileLocation": "\\Server\FMEServer\Logs\jobsubmitterservice\FME_7D150E1F_1313442260444_4244.log", 
 
 "LogFileName": "jobsubmitterservice\FME_7D150E1F_1313442260444_4244.log", 
 
 "StatusMessage": "A fatal error has occurred. Check the logfile above for details", 
 
 "StatusNumber": "1", 
 
 "urlPrefix": "http://locahost/" 
 
 }

 

Any ideas? 

 

@rylanatsafe​ , @david_r​ ,  @Takashi Iijima​  and others

Hi @arthy​ ,

Please note that this functionality is considered legacy and can be completed using FME Server Automations. Please see Send email from Automations for more information.

The email body is set up in the Subscription, JobSubmitter_Email_JobFailure. JobSubmitter_Email_JobFailure Email BodyAs you can see, the job ID is populated in the email using the attribute {id}. I believe you can grab the other workspace attributes (time start, time finished, etc.) from Automations> Email Action > Email Body > Text Editor. Please try out the attributes with and without "job."

  • {job.id} --> {id}
  • {job.timeFinished} --> {timeFinished}
  • {job.timeStarted} --> {timeStarted}
  • {job.workspace} --> {workspace}

Text Editor 

Hope this helps!

Kezia


Hi @arthy​ ,

Please note that this functionality is considered legacy and can be completed using FME Server Automations. Please see Send email from Automations for more information.

The email body is set up in the Subscription, JobSubmitter_Email_JobFailure. JobSubmitter_Email_JobFailure Email BodyAs you can see, the job ID is populated in the email using the attribute {id}. I believe you can grab the other workspace attributes (time start, time finished, etc.) from Automations> Email Action > Email Body > Text Editor. Please try out the attributes with and without "job."

  • {job.id} --> {id}
  • {job.timeFinished} --> {timeFinished}
  • {job.timeStarted} --> {timeStarted}
  • {job.workspace} --> {workspace}

Text Editor 

Hope this helps!

Kezia

@keziaatsafe​ 

In fact the link https://community.safe.com/s/article/send-email-from-automations is enough when you want to send an email from an automation.

But what I really want to do is to have in place an automation that will (i) detect any workspace that failed on the FME server a s soon as it happened and (ii) send an email to a specific email address.

How should I proceed to achieve this double objective?


Reply