Hello:
I have a simple workflow connected to a batch macro. Intent is to read 50 rows from a csv file which contains 2 columns. Col1 is the text which represents the file name to be saved. Col2 is the query syntax to be run on ms sql server.
main workflow looks like this:

So 2 lines are being fed to the macro, one for file name to be save other query syntax.
Here is the Batch Macro:

We start with macro input, what has dummy file name and SQL syntax. Top line is the TEXT which file name to be saved, and the bottom is SQL syntax, which feeds into Dynamic Input tool controlled by parameter by Action Tool.
Dynamic Input has a connection to ms sql server and SQL Editor contains the dummy query, which is valid. 'Modify SQL Query' button in Dynmic Input is selected and Action Tool is set to 'Update Value'


Main Issue: Main workflow appears to be reading all 50 rows, but macro is processing only dummy SQL syntax listed in macro input
Any point will be most appreciated. This work is working saving the file but only the dummy values specified in the macro input tool. 50 values from data input tool are not being passed to process them.
Thank you so much.