Skip to Content

Routing the files based on structure of the files, present in same folder with same naming convention

Hello Everyone,

I have a scenario, where we get 4 different types of files in the same folder. Two files are in XML format and other two are in text format and all these four files have same naming convention and they will be placed in same folder.

Previously we were getting only two XML files and the structure of the files were almost same, hence i had used a common XSD to accommodate both the structures and differentiate them in the Interface determination using XPath expression and have different operation mapping.

Now there are two additional text files which are placed in the same folder with same naming convention as above two XML files. I need to take these two files and drop into one of the folder of ECC system.

Can you please let me know how to accommodate this in my scenario?

Regards,

Nitin Deshpande

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 17, 2016 at 10:40 AM

    Hi Nitin,

    When you say file-naming convention is same do u mean even the extension of .txt and .xml file are same ? or their is no extension at all.

    If you have extension respectively i.e as .txt/.xml then you can do filtering in RD/ID.

    Br

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2016 at 10:33 AM

    Hi Nitin,

    In the condition editor for receiver determination, select context objects (xpath is the other option), scroll down and select FileName. Then use the approx sign (wavy equal) and then input .txt.

    Regards,

    Mark

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2016 at 08:31 AM

    ASMA.JPG (51.1 kB)
    context.JPG (81.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.