I’m encountering an issue with applying a transformation in my DataCube CPQ XML mapping file. Specifically, I want to change the value of a float attribute to NULL
if it is zero. but it is not working.
<document var_name="transaction" db_name="QUOTE">
<!-- Other attributes -->
<attribute var_name="float_attribute" db_name="FLOAT_ATTRIBUTE" clob="false">
<Transformation>
<![CDATA[
CASE
WHEN FLOAT_ATTRIBUTE = 0 THEN NULL
ELSE FLOAT_ATTRIBUTE
END
]]>
</Transformation>
</attribute>
<!-- Other attributes -->
</document>