Skip to Content
author's profile photo Former Member
Former Member

get File name of the inbound file during mapping

Scenario: to read the file name of the inbound file (which has date required for the mapping) during runtime.

The requirement is to read the date of the inbound file (passed to the XI pipline by the file adapter) and populate the same in the outbound mapping structure.

Any idea about how to do this?

(I went through few options of using not successful yet)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 12:15 PM

    Hi Anand,

    I posted the same question a time ago, without any help....

    Can I find out the full filename of input file in message mapping?

    Posted: Nov 23, 2004 1:00 PM

    I have in XI 2.0 the following scenario :

    In the inbound fileadapter I read my input file. The filename of the input file is part fixed, part variable (Like INDATA01.txt, INDATA03.txt, etc).

    So in my Adapterconfiguration, I specify the filename with a wildcard (INDATA*.txt).

    What I now want to do, is in my Message Mapping use the full filename , so I can do something different for every filenumber. Is there a way where I can get the full filename available in my message mapping (I did not find the filename in the XML in the message trace).

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      In XI 2.0 I wrote a dispatcher for this (among other things), to get the file name you use the following line in your service method [public void service(TransformRequest request, TransformResponse response)]:


      for XI 3.0 you have to convert the dispatcher into a module ...I haven't done this yet but I think it is documented in the nw'04 documentation on



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.