span8
span4
span8
span4
Hi,
I am using Automations in FME Server 2019.1 for the first time and I want to add the log file as an attachment to an email.
I have tried inputting the following two options into the Emailer but neither worked.
Option 1:
$(FME_SHAREDRESOURCE_LOG)/engine/current/jobs/*/{job id}.log
Option 2:
{job.log}
Automation Workflow:
As a side note, I would also like to know if it is possible to send multiple attachments with the Emailer in Automations?If so, what would the syntax be for that?
Thanks in advance!
What are you trying to do with the job log?I have a workspace that I can share that we parse the log and send an email.
Hi@runnealsI am trying to send the job log as an attachment in an email after the job has completed.
Hi@aquamarine,
In the Automation, you will need to select Workspace | Job Log from the Upstream Messages dropdown under Email Attachment.
Notice the little 'Link' symbol circled above.
This should correctly attach the log file to the email.
Hope this helps,
Simon
Hi Simon,
Ok great thanks for that!I didn't realize you could click on the 'Workspace' item in the drop down!
It's all working as hoped now :)
Hi@aquamarine,
Just a quick update to let you know for Option 1, this wasn't working because the {job.id} key simply returns the job number, however the filename has the 'job_' prefix therefore the full name is job_{job.id}.Second it looks like we cannot process the wildcard, therefore the complete filepath actually needs to be:
$(FME_SHAREDRESOURCE_LOG)/engine/current/jobs/0/job_{job id}.log
For Option 2, I would expect this to work, as the Job Log value is the same whether you reference it via the Text Editor or directly through the drop down options, therefore I have filed bug FMESERVER-14393 to see if this can be fixed.
UPDATE: FMESERVER-14393 has been fixed.You can now specify {job.log} through the Text Editor as opposed to selecting the log from the drop down picker and it will work as expected.This was fixed for FME 2020.0 which is available for download now fromsafe.com/downloads
FMEServer 2019 - Email publication - unable to read attachment3 Answers
Passing Multiple Attachments in an Email to a Workspace Using Automations2 Answers
FME Server 2019 automations4 Answers
Error with Path Reader - Automation in FME Server1 Answer
Varying Multiple Attachment Email Used to Trigger Workspace and Populate Publish Parameters1 Answer
© 2020 Safe Software Inc |Legal