Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: OneDrive upload works but Errors out at the End

OK, I assume that the /ABCDEFGHIJKLMNOP/APPZ was your attempt to specify a target directory. That not the correct syntax. This should do:
WinSCP.exe My_Profile1/ABCDEFGHIJKLMNOP/APPZ /defaults /upload // file.txt
See https://winscp.net/eng/docs/commandline#operations
Radical1

Here is the log file.

Here is the log (Private).
martin

Re: OneDrive upload works but Errors out at the End

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Radical1

OneDrive upload works but Errors out at the End

The command below uploads the files as expected but displays an error after completing the task. This connection is a named OneDrive Connection (My_Profile1).

WinSCP.exe My_Profile1 /defaults /upload // file.txt /ABCDEFGHIJKLMNOP/APPZ
Error
---------------------------
File or folder '/ABCDEFGHIJKLMNOP[/img]/APPZ' does not exist.
---------------------------
System Error. Code: 3.
The system cannot find the path specified
---------------------------
Abort Retry Skip Skip all Help
---------------------------