You usually get that error when a Number data item is blank or a Flag data item has no value. There's no real concept of null in BP and you have to be careful to ensure things like Numbers, Flags, Dates etc always have a value before you attempt to use the.
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------