on 12-14-2007 3:20 PM
Hello folks,
I have a file sender adapter for a text file with name convention that includes a date - e.g. orders_YYYYMMDD.txt. We have a business requirement to ensure that we don't post the same file more than once. The file can be huge, so it's not really an option to pick up the file contents in one message.
Options I have tried:
- I do not know of a setting in the file adapter to achieve this.
- write a perl script to read the filename and translate [hex-encode] this into a Message GUID, then post the file via HTTP adapter
- - if the file name is not too long (guid is 32 hex chars) this method works well for small files that are in XML format.
- - Text files need too much perl coding to translate to XML. Large files that need to be split will fail on the 2nd chunk.
Options I don't want to use:
- Use BPM to call an RFC/Proxy that validates the filename - this will cause me to read the whole file, or I have to implement a 'pipe' in BPM to ensure EOIO processing. (We have this elsewhere, but it's not good for performance)
- Actually, I don't want to manage this in ABAP/Ztables at all if possible.
I am about to start work on a Module Processor to mangle the GIUD in the file adapter, similar to the HTTP method above (don't have any idea of whether this will be possible yet)...
Can anyone recommend another method to achieve this?
two solutions i can think of quickly is;
1. A script that runs to check if the file name already exists and then moving the file so that it is not processed by the adapter.
2. An adapter module that checks for the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Derek,
Intially when the file is picked then archive it to another directory.
with this the same file will not be processed twice.
Rgds,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.