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

Dynamic Directory determination not working through ASMA multi-messaging

Dear Experts,

I have a very common requirement to determine file path dynamically and for that I have used ASMA concept BUT this is not working

- in RWB I am getting the error as "The Adapter Message Property 'Directory' was configured as mandatory element, but was not supplied in the XI Message header"

I did similar kind of ASMA for dymanic filename for different interface and it was working BUT here the only difference it that the message mapping is multi-message mapping so it may happen that I put the UDF in wrong place or missing something else.

- In ID I did the below

1. Activate the ASMA with tick the "Directory" check box and "Fail If Adapter-Specific...." check box

2. Put '*' and also dummy file path into "Target Directory" field in CC

- In ESR I did the below

1. create an UDF with below logic:

String fileDir = "";

DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key1 = DynamicConfigurationKey.create("","Directory");

fileDir = var1; <-- input argument in the UDF


return fileDir;

2. I have tried to use this UDF in many places like at root "Messages" level or at "Messages->Message1" level or at message type "Messages->Message1->MT_Message1" (please find the source and target structure)

Thanks & Regards


untitled.JPG (40.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Mar 12, 2013 at 07:25 AM


    You need to use variable substitution for multi-mapping scenarios unless you are splitting via interface determination (xpath) and not via message mapping.

    Hope this helps,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Mark,

      I am trying with variable substitution BUT I do not want to create any extra node in the existing message types.

      Is it possible to use Message Type directly instead of Message type field during variable substitution?

      That is to say

      instead of using

      var1 payload:MT_MessageType,1,DT_DataType,1,MATNR,1

      is it possible

      var1 payload:MT_MessageType,1 or similar like this

      Thanks & Regards


  • Posted on Mar 12, 2013 at 07:48 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Roshan,

      Thanks for the link BUT if you check the details of my post, I did the same thing.

      and also in this link - in Receiver CC it was used variable substitution not ASMA

      Not really helpful to me...any other suggestion?

      Thanks & Regards


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.