Welcome to the Alteryx Knowledge Base

SharePoint Output Tool fails with an error when an Excel file is locked
user

Created/Edited - 6/30/2026 by Clara Boo | Alteryx

Issue

Attempting to overwrite an Excel file through the SharePoint Output tool will fail with the following message if the file is currently in use:

 

Make sure to close the file and try again in 15 minutes. Hence skipping the file '<FILE_NAME>.xlsx'.

 

000015473_3.png

Re-running the workflow again does not return the above error message or an appropriate message but the following error is shown instead:

 

For Designer version < 2024.1

 

WorkflowRuntimeError("Error while uploading file '<FILE_NAME>.xlsx'.") has type WorkflowRuntimeError, but expected one of: bytes, unicode.

 

000015473_1.png

 

For Designer version >= 2024.1

 

Error: bad argument type for built-in operation 

 

000015473_2.png

 

NOTE: A file cannot be updated/uploaded to the SharePoint server if it is in use or another session is using it. This is controlled by Microsoft, and you will need to close the session or file and wait for 15 minutes before the lock is released.

 

 

Environment
  • Alteryx Designer
    • Version: All
  • SharePoint Output Tool
    • Version >= 2.3.0

 

 

Cause

A defect (TPM-4298) has been logged to address the unexpected error in the subsequent execution and replace it with an appropriate message showing the state of the file.

 

Resolution

Solution A: Upgrade SharePoint tool

This issue has been addressed in SharePoint tool version 2.7.6. Please upgrade to this version.

 

Solution B: For SharePoint tool version < 2.7.6

If the mentioned error is encountered during runtime, please check whether an existing session is accessing the file you are overwriting in the SharePoint server. 

For SharePoint tool version >= 2.6.0, you can check the details of the error in the following log file:

  • C:\Users\<USER>\AppData\Local\Alteryx\Log\SharepointOutput.log

You may see any of the following content below in the file, indicating the cause of the error:

2025-02-07 04:01:12,433 - SharepointOutput - INFO - {"error":{"code":"notAllowed","innerError":{"code":"resourceLocked"},"message":"The resource you are attempting to access is locked"}}
2025-02-07 04:01:54,560 - SharepointOutput - INFO - {"error":{"code":"nameAlreadyExists","message":"A file with the same name is currently being uploaded. Change the filename and try to save again.","innerError":{"date":"2025-02-07T04:01:54","request-id":"0a862a6e-b0f7-4b0c-9ffb-4dffd125ef4c","client-request-id":"0a862a6e-b0f7-4b0c-9ffb-4dffd125ef4c"}}}

 

Additional Information

For the SharePoint Files Unified Connector, please review the article for the behaviour:

 

Was this article helpful?