Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Writing multiple sheets simultaneously in same excel workbook

234abhishek
5 - Atom

I have an alteryx workflow wherein I'm doing some data processing and trying to write into multiple sheets of an excel workbook. Now, I get the error that writing is not possible as the file is being used by another program.

 

How to avoid this error and make sure all sheets are written in the excel workbook simultaneously.

 

Thanks in advance! 

4 REPLIES 4
aatalai
14 - Magnetar

Have you got the file path including file name and sheetname in one of the fields? If so use one data output tool with get file path from field, or is that what you've already been trying?

apathetichell
19 - Altair

You cannot write to different sheets (or use mutliple output tools to write to the same sheet) in excel at the same time. Execl is not a database which supports concurrent transactions. You get around this by timing your outputs using block until done - and making sure that output 2) occurs after output 1) is done.

Raj
16 - Nebula

@234abhishek use block until done tool to first write data into your first sheet and then in next sheet .or look for a wait a second tool if you have access to it.

cjaneczko
13 - Pulsar

As other have mentioned you can use the Block Until Done on each of the outputs. If your paths are not part of the same flow you can also use Control Containers in place of the BUD's. 

Labels