Hi. I built an iterative macro to get make API calls. Each call uses a customer ID as parameter, and the results may be paginated. The iterative macro takes the API url as input. The max iteration is set to 5000. As a test my input data has 10 unique customer IDs.
The expected number of records to be extracted by this data isn't much, but the iterative macro took so long to run that I had to terminate it. Out of the blue I wrapped the iterative macro inside a batch macro, taking the same API url as input. This one ran fine. Here's the construction of the batch macro (the red node is the iterative macro):

Out of curiosity I ran only 4 IDs. This time the iterative-only method ran ok, but I noticed there's a difference in the results. For the iterative-only method, it looks like this:

But the batch macro method yields this result:

Both macros give the same 6 records (because 1 ID needs to iterate 3 times) as expected. But the returned sequence is different. The batch macro method follows the sequence the input rows, but not the iterative-only method.
I suspect that I may have misunderstood some macro basics, as it seems for this case the iterative macro will only work correctly if embedded inside a batch macro. Could someone please provide some insights into this?
Thanks!
AW