Requirement : To pick multiple CSV files together and send to S4 as combined xml and archive the source CSV files once it is successful and move to error folder if iflow is failed.
Solution approached : Have done using the datastores in a single artifact (calling multiple integration flows) and able to send to S4 using RFC adapter and archive successfully.
Issue : My problem is with error case.Whenever my scenario is getting failed, the SFTP server keep-on polling the iflow as files are still exist in the input folder and not getting deleted.
Tried below approaches,but no luck.
1.Tried to process the files to different folders based on RFC response,but stuck in middle as we have multiples files to send to respective directories and single final RFC connection.
2.Set post-processing option in SFTP sender adapter to delete,but files are not getting deleted, when iflow is failed.
Request everyone to suggest if there is any other procedure to do in CPI to delete the files if iflow is failed.
Thanks in advance!