Hi everyone,
We are loading data to a database from a bunch of source files for cleanup & reporting. Some of these tables are heirarchical and need to be written to in a specific order. I haven't been able to get block until done to work in this situation, as we are using the identity field (autonumber) as our primary key and carrying through that integer to the other tables. So Alteryx still will read the input of the table that is used in another step before the output of that first table is complete.
I've come up with a solution that works quite well by using the append tool followed by a filter, using a control input to define the order. Then I have to remove that field in the select tool afterwards and it will write the data to the table.
I am trying to turn this into a macro (more for the sake of learning than out of necessity) but am having difficulties. I believe it needs 3 inputs.
1 - Defined on the instance of the macro tool itself as the 'filter' parameter
2 - Input control, defined on a single table as you see here
3 - The data stream that will be passed through the macro
I am having the most trouble with step 3 - getting a macro input to dynamically accept a data set regardless of # of columns, so that when the input matches the filter parameter, the data will pass through the filter, the appended field will be removed and the essentially untouched data set will flow to the macro output. I hope this makes sense, and I will keep trying as well.
Thank you for any help
