Skip to Content

Dynamic configuration for receiver adapter doesn´t work with a SFTP sender adapter

Hello,

I have got a curious problem with a SFTP sender adapter.

At first I had a szenario with a sender file adapter and a receiver file adapter, both with transport protocol file system (NFS). In a mapping I used a UDF to set the file name and the directory for the receiver adapter by dynamic configuration. Everything worked fine.

Then I replaced the sender file adapter with a SFTP adapter. The file is picked up from the server, no error in SXMB_MONI, but there is no file created in the target directory! In SXMB_MONI I can see that the dynamic configuration doesn´t work, the entries for filename and directory are missing. But how can that be? The mapping and the receiver adapter are still the same, so why it shouldn´t work with another sender adapter?

Or is there anything else I have to do?

Regards,

Marcus

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 06, 2014 at 05:00 PM

    You just need to change the namespace in the sender sftp adpater " "http://sap.com/xi/XI/System/File"

    Refer to the below discussion - http://scn.sap.com/message/14753512#14753512

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10, 2014 at 02:44 PM

    Hi Marcus,

    First thing the SFTP adapter supports Dynamic configuration and I ve done this just last week.

    The mistake you have made is in the name of namespace :

    Its should be like this

    <Adapter metadata location><Adapter name>

    for example :

    In my case it was :

    http://advantco.com/xi/XI/SFTP/SFTP

    So your program should be like this :

    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SFTP","FileName");

    http://advantco.com/xi/XI/SFTP

    Please try this.

    Add comment
    10|10000 characters needed characters exceeded