I am facing an issue while using the Upload File activity from the Microsoft 365 package to upload/replace a file in SharePoint

What I am doing

  • Using Upload File activity to upload files to a SharePoint folder
  • Providing:
    • File to upload → Filename
    • Destination folder → DestinationUrl
    • New name → System.IO.Path.GetFileName(Filename)
    • Conflict behavior → Replace

Hi @Natasha21

This error typically occurs because the file is already open, checked out by another user, or the automation is attempting to overwrite a file without the correct permissions or property settings.

Can you please check if the file you are trying to replace is already open or checked out by another user?

Also, please check if you have write permissions to replace the file?

1 Like