Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Batch Macro Outputting to one Excel File causing Error

Roisinmm
7 - Meteor

Hi all,

 

I have built a batch macro (my first so I may have built it incorrectly).

 

I am basically taking multiple excel files with the same template formatting it and then spitting it out into one table in excel.

 

It seems to work, but occasionally it fails to write the data into the output excel file because it states 'the file is being used by another process'.

 

I've seen this happen in other workflows and I've used the Block until Done tool to combat this. But I have no idea where to start here!

 

Roisin

4 REPLIES 4
LordNeilLord
15 - Aurora

Hi @Roisinmm,

 

Are you writing to the Excel file within the Batch macro?

 

If you are, I'd suggest that you need to process the data within the macro and then output the data to Excel from outside it

Roisinmm
7 - Meteor

Hi @LordNeilLord

 

Yes I currently am writing to excel within the macro.


Just to confirm, are you suggesting that I could do something along the lines of Joining the data in the macro and then output after?

LordNeilLord
15 - Aurora

@Roisinmm,

 

 

Depending what you need to do but you could have the macro output all the data as one big list and then do some processing afterwards to split it up into different sheets in your excel.

 

If you want to post a pic of your macro so far I can give you more guidance

 

Roisinmm
7 - Meteor

@LordNeilLord

 

All fixed! It works now thank you for your help! :)

Labels