on 10-30-2014 7:22 AM
Hello PI Folks,
I have a Scenario(File to File) where I have to pick up a bunch of files with a single trigger file. But presently with the ideas so far , as discussed in http://http://scn.sap.com/thread/3157678 , I am able to pick only one file per trigger file.
Can you all suggest a solution for this ?
Embedding the Pic of Configuration along.
Thanks Mark !! But no luck
I have configured the Channel a bit different this time.
Now with this I'm a able to pick all the 'xml' files placed in the directory after placing the trigger file.But Only Trigger file is getting processed. Rest of the additional files are not. Also PayloadSwapBean is not working. Please refer my configuration of that in the screenshot attached.
Can you suggest what changes could be done so that all the files are processed ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The module configuration is not correct. It should be swap.keyName followed by swap.keyValue.
Hope this helps,
Mark
Hi,
Personally I would do it exactly the opposite way:
File Name = bib*.trg
Additional Files File List: MainFile
MainFile.namePart: ".trg"=".xml"
MainFile.optional: NO
This config should allow you to process all the files triggered by one trigger file as one message. You might also need to additionally use PayloadSwapBean.
With your current config, each file will always be processed separately, with an additional trigger file check, and the trigger file will disappear after processing a first file of each "package".
Regards,
Grzegorz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Grzegorz for your reply ,
I have checked your configuration too before posting this. But the result is same.
Maybe it cannot be achieved without PayloadSwapBean as you said earlier.
But Can PayloadSwapBean be used for File Scenarios because I saw that it was used on 'Mail' Adapters ? Correct me if i'm wrong.
Can you throw some light on how it can be done here ?
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.