Hi,
I would like to know how to assign an attribute value NULL using python?
I'm aware of the nullattributemapper transformer to do that but I would like to add this inside a python script.
Thanks
Hi,
I would like to know how to assign an attribute value NULL using python?
I'm aware of the nullattributemapper transformer to do that but I would like to add this inside a python script.
Thanks
FMEFeature.setAttributeNullWithType(attrName, attrType) should be what you're looking for. For most use cases, attrType doesn't matter, so you can use something like fmeobjects.FME_ATTR_UNDEFINED.
FMEFeature.setAttributeNullWithType(attrName, attrType) should be what you're looking for. For most use cases, attrType doesn't matter, so you can use something like fmeobjects.FME_ATTR_UNDEFINED.
In addition, if you need to make a <missing> attribute, just remove the attribute with FMEFeature.removeAttribute(attrName) method.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.