Skip to main content

Hi,

The below python code works in ArcGIS Pro:

But returns the below error in FME:

What would be the ‘FeatureProcessor’ python symbol?

Regards

Because in PythonCaller there needs to be a Python Class to handle each Feature being passed into the Transformer.

The blank template python code in PythonCaller has a class called “FeatureProcessor” and this has likely been overwritten by copying and pasting the above code over the top of the text.  As explained in the Python template comment text, this class must be present, even if it triggers no further Python functions or statements within the feature handling Class.

For ease of use, I would generally recommend keeping the template Python code intact, and carefully copying and pasting the desired lines of text into the relevant template Classes (they are all commented with when they are called by the Transformer), and not overwrite the template structure.


Thanks, leaving the blank template in the PythonCaller and copy-pasting under the “FeatureProcessor” section did work


Reply