I have macro that I use to calculate the time interval into which each row of data falls (see attached DemoMacro). It ueses the "Update Select with Reverse Field Map" Tool to ensure the previously mapped column is renamed to its original name. To make sure that the additionally created fields are named with the original Field Name (+ some suffix) I use the Dynamic Rename tool.
My problem is, that further down in the workflow I sometimes get the correct field names (i. e. original field names + suffixes) and sometimes I get the field names that are used inside the macro.
The problem occurs when I make changes to the workflow, e. g. changing the value that I change the field name to in a Select Tool after the mentioned macro. The new field name does not propagate properly and I have to very tediously fix tools one by one and always do a run in between to update field names downstream.
How can I make sure my Macro only outputs one field name that tools downstream will pick up so that the field name used inside the macro does not appear outside somehow?
Thanks a lot in advance!