cancel
Showing results for 
Search instead for 
Did you mean: 

ASMA error in SFTP Receiver Adapter

Former Member
0 Kudos

Hi Experts,

Recently Advantco SFTP adapter have been installed in our server. I am doing simple scenario from File-PI-SFTP without IR.

In my Sender FTP channel i have selected adavced selection for source file as i need to send five files and given file name and directoy and in ASMA i have checked filename. In Receiver SFTP channel i have given all required paramters and in filename scheme i have given as %filename%. In Enable ASMA i have checked filename and freceiver chaail if ASMA.

When i tested the scenario my sender channel picked files successfully but in my receiver channel i am getting error as below.

**Adapter-specific message attribute 'FileName' with namespace 'http://advantco.com/xi/XI/SFTP/SFTP' is not available**

When i tested the same with FTP-PI-FTP then its working fine.

Can anyone suggest what went wrong in my config and what additional settings need to be done in SFTP

Thanks,

Swetha Reddy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

As far as I know, the filename propagation from sender to receiver without any IR objects is only possible for file to file scenarios. Since your scenario is file to SFTP, you would need to populate the ASMA property 'http://advantco.com/xi/XI/SFTP/SFTP in your message mapping or you can also try uisng the dynamic configation bean.

Regards

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Maybe you can use the DynamicConfigurationBean for your requirement, see Stefan's blog below

The idea is to write the fileName using the first DynamicConfigurationBean and then read the fileName using the second DynamicConfigurationBean.

Hope this helps,

Mark

Former Member
0 Kudos

Hi Mark/Sarkar,

Thanks for reply and suggestion.Let me try with dynamic config bean.

Thanks,

Swetha