cancel
Showing results for 
Search instead for 
Did you mean: 

Question on file adapter variable substitution

johnny999
Participant
0 Kudos
795

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

johnny999
Participant
0 Kudos

Thanks Sneha

But then why didn't variable abc changed to the filename? Right now abc still has the real value of inbound interface_name which is TS_IN instead of TestMessage2.xml?

Also, if I want to get the sourcefiletimestamp, what should be the value I pass? Let's say I want to write the sourcefiletimestamp into receiver_party, should I pass into value receiver.party? How do you associate interface_name = "interface.name"?

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.