Hi, I am facing issue with Sftp producer while using done file name option with stepwise option as false. Previously it was not creating the done files in SFTP destination, I googled and found the solution to make stepwise as true and it works and created the done file
stepwise=false doesnot create done file. stepwise=true creates the done file. File processed test.txt, in sftp destination two files created test.txt, and test.txt.done. but when the route is restarted and same file(test.txt) is passed which processed earlier, sftp and tries to delete the existing done file(test.txt.done) but fails to delete and throws the following exception GenericFileOperationFailedException("Cannot delete existing done file: " + doneFileName); Below is the camel route: from("sftp://my.comp.com:22/sftp?username=test&password=test123&idempotent=true").process(new Processor() { @Override public void process(Exchange exchange) throws Exception { System.out.println("test"); } }).to("sftp://my.comp.com:22/sftpDest?username=test&password=test123&doneFileName=${file:name}.done&stepwise=true&chmod=777"); Camel version used is camel-2.9.0. Please help. Thanks & Regards, Shadab This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.