I keep getting the error, While using the following method in the code:
..
attrValue = feature.getAttribute(AttrXYZ)
...
Python Exception <AttributeError>: attribute has unsupported type 2014-11-05 11:19:16| 2.0| 0.0|WARN |Traceback (most recent call last): File "<string>", line 59, in input File "C:\Program Files\FME\fmeobjects/python26\pyfme.py", line 199, in getAttribute def getAttribute(*args): return _pyfme.FMEFeature_getAttribute(*args) AttributeError: attribute has unsupported type
Note the attribute may contain nulls, and only raise the error while encountering a null value.
However, I tried to use the method "feature.getAttributeNullMissingAndType(attrName)" to detect whenever the null attribute value occurs to skip it.
But I got another error:
Python Exception <AttributeError>: getAttributeNullMissingAndType 2014-11-05 11:25:58| 2.1| 0.0|WARN |Traceback (most recent call last): File "<string>", line 52, in input File "C:\Program Files\FME\fmeobjects/python26\pyfme.py", line 121, in <lambda> __getattr__ = lambda self, name: _swig_getattr(self, FMEFeature, name) File "C:\Program Files\FME\fmeobjects/python26\pyfme.py", line 34, in _swig_getattr raise AttributeError,name AttributeError: getAttributeNullMissingAndType
I'm using FME 2014 SP3
Python v 2.6
Any idea?