Skip to Content
Former Member
Mar 12, 2013 at 07:10 AM

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)