The workflow is relatively complex and it writes various info to various sheets of the same excel file, at the same time.
I used all relevant "Block Until Done" tools to ensure that the info is written one by one, only after the previous write finishes, to ensure that I won't be getting any "cannot open file because it is being used" errors.
The workflow does in fact run just fine locally with no errors whatsoever. However when I run it through the gallery, I receive various lines of the above mentioned error.
- Unable to open file for write: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx - Attempt to open a file that is already open: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx: The process cannot access the file because another process has locked a portion of the file. (33) (Tool Id: 158)
- Unable to open file for write: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx - Attempt to open a file that is already open: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx: The process cannot access the file because another process has locked a portion of the file. (33) (Tool Id: 159)
- Unable to open file for write: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx - Attempt to open a file that is already open: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx: The process cannot access the file because another process has locked a portion of the file. (33) (Tool Id: 160)
- Unable to open file for write: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx - Attempt to open a file that is already open: C:\ProgramData\Alteryx\Service\Staging\2140_737bc27fd10d428486833f6c625ce376\Output.xlsx: The process cannot access the file because another process has locked a portion of the file. (33) (Tool Id: 157)
The strangest part is that this workflow (unchanged) used to work just fine on the gallery as well. Not sure what changed. Any ideas on how to resolve this?