Make sure you have a stable network connection and do not upload files while they are in use by other processes. If you have no control over these things you can set the job to retry if it fails. Using number of retries and retry interval parameters you can configure how long and how many times you want the job to retries before going to FAILURE state. You can also add custom logic like if the destination file already exists (FTPFileExists)try to delete it first (FTPDeleteFile) if delete fails wait to do that again as long as needed. You can check that the source file exists (FileExists) and it is not in use by trying to open it for reading (FileOpen/FileClose), and so on..., but I see no real value in doing that. : Hi, : What would be best way be to ensure that a FTPPutFile : is always successful? : Thanks : Drake
|