on 03-25-2015 1:42 PM
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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:
>>>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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.