Skip to main content
Question

Terminator Transformer - FMEException

  • March 8, 2018
  • 4 replies
  • 49 views

jbradfor
Contributor
Forum|alt.badge.img+7

We run the workspace using PERL.

We have implemented a conditional check in the workspace for record counts BEFORE we update the table. If that TEST fails, we route to the Terminator transformer.

The issue we are having is that Terminator does not set FMEException, thus PERL thinks it was successful.

We need to terminate the STREAM of jobs.

How do we do that? I do not see anything FME parms related to FMEException.

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.

4 replies

takashi
Celebrity
  • March 9, 2018

I'm unclear what the PERL means, but if you just need to raise an FMEException, the PythonCaller with this script could do that.

import fmeobjects
def raiseException(feature):
    raise fmeobjects.FMEException('error')

Forum|alt.badge.img+6
Hi @jbradfor,

 

 

May I ask why you are executing the workflow with PERL code? What is the use case in this scenario?

 


jbradfor
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 14, 2018

We do not have FME Server. So, we use PERL scripts to execute our workflow streams. We are testing the proposed solution above. The Log did not look much different with the use of PythoCaller vs. the Terminator transformer, so are skeptical at this point. We have a ticket open with Safe but have not heard back from them.


Forum|alt.badge.img+6
Hi @jbradfor,

 

 

I believe one of our support staff have reached out to you yesterday - we look forward to helping you get back up and running!