cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP - > FTP Scenario

Former Member
0 Kudos

Dear ladies and gentlemen,

I have follow problem:

We will pick up different files from a SFTP Server and put on a different FTP Server.

So far so good. The SFTP Adapter works as we expected. but the FTP Receiver Adapter makes trouble.

They couldn't write a dynamical file name.

We have a FTP->FTP Scenario in place, it works perfect with the '*' as file name, but not in this Scenario.

So I try to use the Variable Substitution and it seems, that is it working, but only with the interface name.

But I need there the file name, I saw as well the file name in the Header:

But I don't which name should/have to use in the Variable Substitution.

For the interface I used

Varibalename: targetname

Reference: message:interface_name

Remark: I try to use the ASMA mark File Name, dosen't work, because I get back, that the field dosen't exist.

Thanks for your help

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Dynamic configuration will work.

Just change the namespace in sender SFTP adapter to "http://sap.com/xi/XI/System/File" (under advanced tab-> as soon as you select enable ASMA, you should have an option to overwrite the namespace)

Former Member
0 Kudos

Hi,

unfortunately dosen't work.

So, maybe I have to create a UDF?

Again, the SFTP Sender Channel is working and I can see the filename in the dynamic configuration.

But in the Receiver Channel, I get a error message, if I use the '*' in the filename:

Delivery of the message
to the application using connection File_http://sap.com/xi/XI/System failed, due
to: com.sap.engine.interfaces.messaging.api.exception.MessagingException:
com.sap.exception.standard.SAPIllegalArgumentException: The parameter "argument"
has the value "remote:///subsysteme/D90/exchange/HR/out/*20150326-074307-162",
so it contains the character
"remote:///subsysteme/D90/exchange/HR/out/*20150326-074307-162" which is not
allowed.

ASMA: Configuration (Receiver FTP Adapter):

If I mark File Name, I get back. follow error message:

Delivery of the message
to the application using connection File_http://sap.com/xi/XI/System failed, due
to: com.sap.engine.interfaces.messaging.api.exception.MessagingException:
com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The
Adapter Message Property 'FileName' was configured as mandatory element, but was
not supplied in the XI Message header

So, now I have follow question:

Could/Should I change the Namespace from the FTP Receiver Adapter and when yes, how?

Is not possible, how can I replace the * with the right filename ?

With Module Configuration ? if yes, how ?

Remark:

If use the Varibale Substitution, which reference have to be use it ?

Remark 2: Funny thing is, that the Scenario is working without any problems, if we have File (FTP) -> File (FTP). But unfortunately in this case we need the Scenario SFTP <-> FTP.

Next funny think is, that the Scenario FTP->SFTP is working.

engswee
Active Contributor
0 Kudos

Hi Stephan

Can you check what are the ASMA values set in your sender SFTP channel? If possible, can you provide a screenshot of how it looks like similar to the image below.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

did changes ...unfortunately no success

I got always the follow error message in the Receiver Channelback:

Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but was not supplied in the XI Message header

Adapter adjustments for Sender Channel:

I did a test as well with the Namespace http://sap.com/xi/XI/File..

same result..

Adapter adjustments for Receiver Channel:

former_member184720
Active Contributor
0 Kudos

>>>I did a test as well with the Namespace http://sap.com/xi/XI/File..

It should be http://sap.com/xi/XI/System/File

You are missing System. As i mentioned dynamic configuration should work without any issues.

It's just the SFTP/FTP adapters use a different namespaces.

Can you try again and confirm?

Please send a new file after making the changes in sender SFTP adapter and when you enable ASMA don't write any UDF in the mapping.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Stephan,

  You need to use DynamicConfiguratioBean in your receiver File channel to achieve your requirement. Please check the blog by Stefan Grube

Hope this solves your problem.

Regards

Charan

nabendu_sen
Active Contributor
0 Kudos

Check for Dynamic Config details: