Welcome to the Alteryx Knowledge Base
Created/Edited -
When running an Alteryx Designer workflow that writes data to multiple Excel sheet tabs, the workflow fails with a file access error. The issue commonly occurs in large workflows with many Output tools attempting to write to the same Excel file.
"Error: The process cannot access the file because it is being used by another process."
Applies to:
- Alteryx Designer
- Workflows writing to multiple Excel sheets in the same workbook
- Workflows with multiple Output tools
- A workflow that outputs to a single Excel workbook with multiple sheet tabs.
- Multiple Output tools writing to the same file.
Multiple Output tools were attempting to access the same Excel file at the same time.
Although Block Until Done tools were added, they were not sufficient to fully control execution order.
Additionally, the final Control Container was not executing because it depended on a disabled phase of the workflow, leaving the Excel file locked.
Use Control Containers to control workflow execution order. Here's how to do it:
- Place each Output tool inside its own Control Container.
- Connect the Control Containers in sequence, so each runs only after the previous container completes.
- Ensure all workflow phases referenced by Control Containers are enabled.
- Remove unnecessary Block Until Done tools once Control Containers manage execution order.