I created a Batch Macro that takes in a list of input records and writes the output to an Excel file creating one tab per record. I then added an Analytics App that let user enters input as in the screenshot below. The "Regions" is then split into multiple records based on the linebreaks.

This is fed into the Batch Macro as the Control Parameter. When I run the Analytic App in the Designer, I get the expected results in the Excel file, with three tabs created:

However, once I publish to our own Alteryx Server (private gallery), the Analytic App starts fine, showing the input screen:

And it runs fine and gives the Excel file for download. However, in the Excel file, there's only the first tab:

I have tried a few different combinations and still got the same different results. What might be wrong here? Please see my working Analytic App and the Batch Macro attached.
Thanks in advance for any suggestions.