Hi all,
I am trying to build an iterative macro for repayments on outstanding loan balances and I keep running into the following error when I run a workflow that contains the macro:

Tool 17 is a formula tool with the following argument:

where all three fields are a "double" type.
The tricky part is that when I simply run the macro, the process works as expected. But when I run the broader workflow, the error is thrown.
I have double checked and the data type in the macro is the same type as the data type in the workflow, but obviously I am just missing something. Can anyone point me in the right direction?
Thanks.