"Upload successful, but an error occurred while setting permissions/timestamp."

Advertisement

TB
Guest

"Upload successful, but an error occurred while setting permissions/timestamp."

WinSCP Version: 5.21.3
OS: Windows Server 2012
Protocol: SFTP
Host: sftpgw.allianz.com
Port: 9122

Problem Description:
When putting a file, I received the error
Upload successful, but an error occurred while setting permissions/timestamp.
I unchecked the "Preserve timestamp" checkbox, but the same error occurred.

What I tried:
  • Unchecked the "Save timestamp" checkbox in the forwarding settings rule for the target login settings.
Log excerpt:
  • Checkbox checked
    < 2025-10-29 11:32:12.234 Script: File '20251028_20251029112528.csv' was successfully uploaded, but an error occurred while setting permissions/timestamp.
    < 2025-10-29 11:32:12.234 If the issue persists, disable permission settings and timestamp settings, or set your system to ignore permission setting errors.
  • Checkbox unchecked
    * 2025-10-30 12:47:45.340 (ESkipFile) **The file '20251029_20251030124033.csv' was uploaded successfully, but an error occurred while setting permissions/timestamp.**
    * 2025-10-30 12:47:45.340 If the issue persists, disable permission settings and timestamp settings, or set your account to ignore permission setting errors.
What do I need to know:
Please tell me what steps I need to take to avoid this error and successfully transfer the file.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,480
Location:
Prague, Czechia

Re: "Upload successful, but an error occurred while setting permissions/timestamp."

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

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. 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.

Also, I do not understand what you mean by ""Save timestamp" checkbox in the forwarding settings rule". What "Save timestamp" checkbox? What "forwarding settings rule"? There are no such options in WinSCP.

Reply with quote

TB
Guest

Re: "Upload successful, but an error occurred while setting permissions/timestamp."

Unchecked the "Save timestamp" checkbox in the forwarding settings rule for the target login settings.
This is a mistranslation by Google Translate; the correct translation is
Unchecked the "Preserve timestamp" checkbox in the transfer settings dialog for the specific uploading session.
We are currently checking if generating the session log file is possible.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
42,480
Location:
Prague, Czechia

There's no "Upload successful, but an error occurred while setting permissions/timestamp" error in the log.

Though there's another error, "The message ... is not extractable!", which is specific to your proprietary server and has probably similar root cause.

The log shows that timestamp preserving is on. Note that the log is from scripting running from some automation service. So your GUI configuration from user session has likely no effect on it.

See https://winscp.net/eng/docs/message_preserve_time_perm#scripting

Reply with quote

Advertisement

You can post new topics in this forum