Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

MENU MENU
Post here if you experience file transfer problems or unexpected errors.
I am receiving a PUTFILE Error #550 when attempting to send a file. I use the same file creation methods and scripting format with other file transfer but when sending to this particular FTP server I get the below results. I believe it is causing the sending of my files to be delayed over several transmissions. I am not sure why the file has the ".part" extension. It is not visible to me and not present in the results of any other scripts I am using.
START CHR 214 2014_05_06-11_14
OPENHOST("ftp-prod.xxxxxx.com","xxxxxx",******)
Connecting to ftp-prod.xxxxx.com
Connected.

LOCALCHDIR("j:\guru\spead\ftpupld")
Changing current local directory to j:\guru\spead\ftpupld

CHDIR("To_CHR")
Changing current remote directory to To_CHR

PUTFILE("ch214*.txt")
Uploading................. CH21412217.TXT
***** PUTFILE Error #550: Cannot rename the uploaded file from CH21412217.TXT.part to CH21412217.TXT.
***** The server said: '/To_CHR/CH21412217.TXT.part': File not accessible.


LOCALCHDIR("j:\guru\spead")
Changing current local directory to j:\guru\spead

CLOSEHOST
Disconnected.
FINISH CHR 214 2014_05_06-11_14
Hello,

This means that your FTP server does not allow file renaming. This is quite important for ScriptFTP as it uploads the files with a different name and once the file is completely uploaded it renames it to its original name. This is used to prevent data corruption on failed uploads.

Fortunately it is quite easy to fix. Try this on the top of your script file:

[scriptftp="avoid_error_550.ftp"]SETUPLOADMODE(DIRECT)[/ScriptFTP]