Question

Terminator Transformer - FMEException


Badge +1

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.


4 replies

Userlevel 2
Badge +17

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')
Badge +1
Hi @jbradfor,

 

 

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

 

Badge +1

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.

Badge +1
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!

 

Reply