• Daniel,

    Check if Parameter!i.value an integer. if it is a text it will take integer values but will error out on calculations.