Thanks. It seems that the file did not finish creating/writing (or possibly uploading to OneDrive?) before WinSCP tried to upload it. That definitely deserves improving on WinSCP side:
Issue 2135 – Do not overwrite existing remote file before succeeding to open the local source file with FTP protocol
Meanwhile, try to increase the interval after which WinSCP uploads the file after the change by setting
https://winscp.net/eng/docs/rawconfig#keepuptodatechangedelay
Issue 2135 – Do not overwrite existing remote file before succeeding to open the local source file with FTP protocol
Meanwhile, try to increase the interval after which WinSCP uploads the file after the change by setting
Interface\KeepUpToDateChangeDelay
:
https://winscp.net/eng/docs/rawconfig#keepuptodatechangedelay