That’s good that the file is intact. There is something definitely odd going on causing the error to occur after the file has been transferred. Perhaps it is something after the put that is causing the error? Maybe the log out fails?
Are you using pub.client:ftp or do you use your own service that calls pub.client.ftp services like login, cd, put, logout, etc.? The pub.client:ftp service doesn’t trap any errors at individual steps so the caller cannot tell at what point the error occurred.
If you’re using pub.client:ftp you may want to create your own equivalent so that you can control error handling in a more refined manner.
If you already have your own pub.client:ftp equivalent, you might consider changing the structure a bit so that you can tell where the error occurs and ensure that logout always happens after a successful login.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods