Skip to main content

Here is the error :

Python Exception <TypeError>: 'NoneType' object is not iterable

Error encountered while calling function `removeDiacritics'

StringDiacriticRemover_3_PythonCaller_2 (PythonFactory): PythonFactory failed to process feature

StringDiacriticRemover_3_PythonCaller_2 (PythonFactory): A fatal error has occurred. Check the logfile above for details

A fatal error has occurred. Check the logfile above for details

FeatureJoiner (FeatureJoinerFactory): A fatal error has occurred. Check the logfile above for details

FeatureJoiner (FeatureJoinerFactory): A fatal error has occurred. Check the logfile above for details

A fatal error has occurred. Check the logfile above for details

I'm assuming that you're using the StringDiacriticRemover custom transformer from the FME Hub.

It most probably indicates that you've specified one or more attributes in the StringDiacriticRemover which are not always present in all the features that enter the transformer.

The easiest is probably to insert a NullAttributeMapper just before the StringDiacriticRemover to map missing attributes to null values.


Thanks @david_r​ for the response .. I tried using the NullAttributeMapper before StringDiacriticRemover but still i am getting the same error


Thanks @david_r​ for the response .. I tried using the NullAttributeMapper before StringDiacriticRemover but still i am getting the same error

Can you share a print screen of the settings in both transformers?


Thanks @david_r​ for the response .. I tried using the NullAttributeMapper before StringDiacriticRemover but still i am getting the same error

The null attribute mapper should work, I can reproduce the error by sending a feature that has a missing attribute, and resolve it by adding a nullattributemapper


Screen Shot 2021-04-09 at 7.25.48 PMScreen Shot 2021-04-09 at 7.24.28 PMThese are 2 transformers from which I am trying to get the output


Screen Shot 2021-04-09 at 7.25.48 PMScreen Shot 2021-04-09 at 7.24.28 PMThese are 2 transformers from which I am trying to get the output

CaptureYou need to map missing attributes to null, your settings are mapping null attributes to missing. Note that you need to use Selected Attributes for this, not all Attributes

 


Hi @ebygomm​ ,

I tried with the selected attributes approach also but didn't get the output. 😞


Still getting the same error message :(


Still getting the same error message :(

Are you able to share some sample data?


Are you able to share some sample data?

sorry can't share sample data ...its against policy


Are you able to share some sample data?

In that case can you please try and post a minimal workspace that recreates the problem using dummy data.


Reply