Skip to Content
avatar image
Former Member

File Adapter-Module configuration

Hi All,

I have the following requiremnt.

"Duplicate files should not process"

Following are the File Access Parameters.

Source Directory: ABC (ex: contains aa1,aa2,aa3,aa4 files)

Filename: *

File name mask: aa*

My doubt is if they place aa1 file again in ftp , i should not process.

For this I'm thinking to write module configuration.

Can any one suggests , whether this is the correct approach? If it is could u explain how to write this module and where to write this module and how to import in xI, do i need to pass any parameter name in module configuration.

Regards,

venu.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 05, 2006 at 01:40 PM

    Hi,

    You can write the module in which you pick up the file name and store this file name some where in database. When you pick up the next file, check the file name in database then set some error in payload and in receiver determination, check the error flag. If error send the file with error or do the error handling else successfully process the file.

    Use the module in your file adapetr.

    Thanks,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2006 at 02:39 PM

    Hi Venu,

    You can go with Module in the Sender File Adapter.

    First you need to check the file name and you need to store this file name in the Database.( you can use Java Database).

    If there is an entry in the database for that file, then reject the whole file as per the business requirement. So that you can avoid , overhead of Mapping. Because if there is an error set the flag in the message and check this flag in your Receiver Determination, if it is an error send into error directory.

    Another way is outside the XI, i.e using shell scripts.

    Regards,

    Moorthy

    Add comment
    10|10000 characters needed characters exceeded