This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have a batch macro that uses grouping to have different data sets go into the macro. I have a set order of those groups going into the control parameter connection, so in theory the batch macro should process batch number 1 first, then batch 2, and so on. I'd like the results of each run to be unioned in the order that they are (ostensibly) being created, but that doesn't seem to be the case. So either the batch macro doesn't in fact process the groups in the order that the identifiers go into the control parameter or it doesn't write them out in the order that they are created.
Unfortunately, it turns out that for whatever reason, the batch macro does NOT process the groups in the order that they are listed in the Control Parameter input stream. I don't know if this unique to this batch macro or if this is expected for all batch macros? So unfortunately, the Iteration number doesn't help.
To solve this problem, I ended up adding a RecordID tool and a Formula field that contained the Control Parameter field so that I could do the sort after the macro finished running.