i have a list and i want to access this with python using FME 2013. It seems to be that i made a stubid mistake.
List:
my{0}.A = 1
my{0}.B = 0
my{1}.A = 7
my{1}.B = 2
my{2}.A = 9
my{2}.B = 5
Python Code:
self.my_list = feature.getAttribute('my')
dummy = len(self.my_list)
print dummy
The code crashes by reading the "len" with:
Python Exception <TypeError>: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "<string>", line 9, in input
TypeError: object of type 'NoneType' has no len()
Error encountered while calling method `input'
I think there is something wrong with getAttribute or i can't read lists this way?
I hope you can help me.
Hendrik