Issue with List files option in File Adapter.
BK574May 1 2013 — edited Feb 26 2020Hi All,
Currently I am using List files option in File Adapter for listing the files in remote directory (Location B). I have put up a if else condition, such that if the inputvariable matches with any of the file names (retrieved during List files option in File Adapter) then it will directly invokes a webservice adapter ( which copies the files from Location B to Location C). if not else condition will be selected and it invokes a FTP adapter and FTP adapter will copies the files from Location A to Location B, followed by web service adapter which copies the files from Location B to Location C. The issue here is, the web service adapter is over writting the existing files with same name, instead of throwing error like"File Name already exists". Before, using if else condition, the web service adapter was good and it is used to throw an error while copying from Location B to Location C, if the file is already existing in Location C.
The Scenario Is:
1. For each invocation, I get 25 file names from a queue and I am passing this file names to FTP adapter dynamically, which then picks up the files with the given name from Location A (Remote) and copies it to Location B (Local).
2. I have created a webservice which picks up the files from Location B (Local) to Location C ( Local). There is a chance that, same file name might come in different invocations, during that time i dont want to invoke FTP adapter, Hence I am using this List files option in File adapter, which eventually checks for all the files in Location B, if the file doesn't exists then it will invoke FTP, if not it will invoke directly the web service adapter.
3. Everything is working fine, but even if the files are existing the bpel is not throwing any error, and it is overwritting the files. Is there any property that I need to setup?
Thanks,