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.
Region |
East |
West |
North |
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.
Solved! Go to Solution.
Hi @1737280 ,
One thing you can check here is how you are constructing the filename at the end of the process.
Currently you are overwriting the filename with just the name of the sheet within the file.
In your macro, change the formula which is creating DataName to the following:
"Appt Data.xlsx"+"|||"+[Region]+"123"
Can you try this and let me know if it helps.
M.
Hi mceleavey, thanks a lot for the suggestion. I tried it quickly but got the same results, that is, the output file locally from my Designer has multiple tabs, but from the Gallery, it has only the first one. I changed the Output Tool to "Change Entire File Path" and ticked "Keep Field in Output" this time:
I'm starting to think if there's a bug in Alteryx Server??
I believe this is happening because the tool isn't completing all the batches. Adding a blocking tool after the macro will allow all the batches to complete when run on the Server. I believe this is because the Browse tools don't execute on a Gallery run (they are meant for Designer).
That worked. thanks a lot @SophiaF !