The short story. After 3.2 and the introduction of BigInteger our data are getting unreliable. In the past we received data in double, now they are in BigInteger, which only work in 3.2, not even FME, seems to read those fields yet.
Some tools fails to use BigInteger, for example, you can't use them for Relate. The fields I'm using has around 10 characters, and are used as ID's for joining tables, so it's a pain
I want to calculate the data from BigInteger to Double. I can use iterate fields, which will find all my BigInteger fields and add them into the output value.
I can add a new Double field using the %Value%_
I can't figure out how to do the calculation where it fails in the expression.
The Field Name == %Value%_ works
So far I've been able to add the name of the BigInteger fields into the new fields, of course that's not what I want.
I've been trying something like:
Expression: calculateValue(!Value!)
CodeBlock:
def calculateValue(Value):
if Value is None:
return None
else:
return float(Value)
and a whole lot of other things, but I'm a bit stuck here.
Thanks.