cancel
Showing results for 
Search instead for 
Did you mean: 

Question on file adapter variable substitution

johnny999
Participant
0 Kudos
772

I am trying out the ASMA and variable conversion. It is a simple test case FTP - PI - file. I have read many blogs and threads and basically follow them as much as I can. I cannot figure out what is missing.

Here is the FTP sender config config:

Here is receiver file config:

The variable abc did not get the filename as expected from the sender CC. Not sure why. Also, I don't understand what "message:interface_name" really mean. In the module config screen, the FileName is saved into value "interface.name". So why in the variable substitution it becomes "message:interface_name"? Should it be "message:interface.name"?

Please advise.

Thanks Jonathan.

View Entire Topic
0 Kudos

Hi Jonathan,

You need to change the Reference under Variable Substitution to message:interface_name. This will pass the sender file name to receiver.

You can specify the following attributes of the message header - sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace

Setting ASMA under Sender Adapter will set the below values in the messageHeader. And hence, you need to use message:interface_name for reading the Sender File name.