on 2022 Dec 29 11:18 AM
Hello everybody
I tried to move files from one directory to another and figured out, that you can only make the Post-Processing of the SFTP adapter happen, if you're Integration Flow doesn't "crash" (e.g. no Error End Event in the Exception Subprocess) otherwise it will keep the file in the directory and reprocess it. In order to make this work with exceptions you have to use an End Message.
The downside, which is what im trying to get at, is, that it would show exceptions as successful but in my POV this doesn't make any sense. I want to see if it "crashed" (e.g. use an Error End Event) and still be able to trigger the Post-Processing of the SFTP adapter (e.g. move the file).
I know that you can change the path where the file is moved to based on an exception but this is not what I'm trying to do.
My Question now is...
Do I misunderstand something here or would it make sense to have an option, so you can always run the Post-Processing of the SFTP adapter?
Request clarification before answering.
Hi Gregor
You can't; the docs quite clearly specify that post-processing only runs for successfully processed messages.
There might be cases where it would make sense to run it for failed messages as well. It clearly makes sense to you in your specific case. But generally I think the current behaviour is correct; keep the file in place if processing fails, get an error in the logs and then try to process again once the channel polls again.
All the best and Happy New Year,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Morten
Thank you for clearing it up but I guess it still would be nice to be able to stop the reprocessing atleast. The File won't change on it's own, so it would be better if you could move it to a different location for inspection but also see that it had failed.
I wish you a Happy New Year aswell!
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.