After file transfer remote SFTP site does not allow to rename

Advertisement

todd@onsiteitservices.net
Joined:
Posts:
3
Location:
Central Time, USA

After file transfer remote SFTP site does not allow to rename

I have seen this topic multiple times on this site, but I have yet to have a solution that will fix this error:
"Transfer was successfully finished, but temporary transfer file 'filename.filepart' could not be renamed to target file name 'filename.837r' No such file or directory. Error code 2. Error message from server: /filename.filepart does not exist
I get this error when I run the following script in the task manager:
# Push to NHA script
# Automate process usings Windows Task Scheduler and the following parameters
# In the Action Tab Program/script: "C:\Program Files (x86)\WinSCP\WinSCP.com"
# In the Action Tab Add arguments: /console /log=C:\scripts\logs\Push_to_NHA.txt /script=C:\scripts\Push_to_NHA.txt
 
option batch continue
option confirm off
 
open NHA
lcd C:\CernerSFTP\CDH_NE\PROD\NHA
cd /
put CDH_NE_NHA*.* -delete
close
exit
I can use WinSCP manually and get the file to transfer and that is where I can see the error above. What is interesting is that the file DOES transfer but I can never see it land in the folder on the remote server, but it will be found uploaded within the site. What seems to be happening is I upload the file manually and as soon as it touches the remote SFTP server is moved, hence the error listed about "file does not exist".

I have DISABLED "Enable transfer resume/transfer to temporary filename for" under Preferences > Transfer > Endurance - this does not seem to help.
Description: screenshots of errors

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: After file transfer remote SFTP site does not allow to rename

If disabling [i]Enable transfer resume/transfer to temporary filename[i] does not help for GUI transfer (though I doubt that), please post session log file showing that.

If you are asking how to disable the option in scripting, see
Transfer was successfully finished, but temporary transfer file … could not be renamed to target file name …

Reply with quote

Advertisement

You can post new topics in this forum