on 03-07-2016 11:04 AM
Hi,
I have the following situation:
The situation of both sftp receiver channels:
1.
2.
I want to have a different file name as output from each sftp receiver channel, but the problem is that I get two output files using the same value in FileNameOne. The value of FileNameTwo is ignored.
In the mapping I am using the same namespace in Dynamic Configuration for both variables, but a different name (respectively FileNameOne and FileNameTwo) and of course a different value (which indicates the name of the file).
Am I doing something wrong here?
Hi Zakaria
I would have expected your approach to work. This following blog also covers a similar approach.
Can you share screenshot of the Message Attributes section of your message(like below)? Just to check that the attributes are populated correctly with different values during runtime.
Regards
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eng,
I just did what you asked and checked the attributes. Both attributes are set correctly.
These are the images, I had to scroll down for the second attribute to show:
And now it's working. I did not do anything, except changing the names of the attributes to something else, and then changing it back. Now it works. I'm really baffled on why it works now, and not the other day. Something regarding a cache maybe?
Now I'm doubting on whether I should transport this scenario to a production system, because sometimes it works, and other times it doesn't.
Hi Zakaria
IMHO, I don't find any issues with your design approach. As such, I would also suspect it might be related to cache.
Does it still work only occasionally now?
If you are not convinced yet, I'd suggest you transport the design to the QA environment and perform some more testing there. Alternatively, you can redo another similar scenario (with same mapping logic and same channel settings) to verify.
Regards
Eng Swee
In Message monitoring can u see the dynamic values in soap envelope ?
bdw how did u handle this in interface determination ? i guess u have created 2 OM using single MM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Zakaria,
Interface determination is 1 OM with 2 SFTP CC's.
so i guess you have provided 1 OM for 1 inbound interface in Interface determination and for other one you have not provided any OM is that right ?
If the above on is true then please note this cant work, you need to create 2 OM and use a single MM and assign these 2 OM in Interface determination respectively for both inbound interfaces.
Br,
Manoj
In the mapping, I specify two attributes FileNameOne, and FileNameTwo. In the mapping, these attributes are filled with a value. Both attributes are passed on to both communication channels. So each communication channel can use the values of both attributes.
The first communication channel can see both values, but I'm specifically assigning the file name to FileNameOne, as you can see in the question.
The second communication channel can also see both values, but I'm specifically assigning the file name to FileNameTwo (also in the question)
So I expect certain behavior, but it seems fixed (see answer to Eng)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inaki,
Thanks for the help. The thing is, I know how to do it with variable substitution, but that means that the file name will be present in the target message, the message/file that the cliënt receives. My cliënt doesn't want this extra field to be added, and "misusing" current fields is also a nogo
The SFTP Adapter has the option of specifying the file name attribute, but it's not working as expected (which is why this thread)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zakaria,
Try with the namespace http://sap.com/xi/XI/System/File
(https://scn.sap.com/thread/3178909)
Regards.
Hi,
I am using the same UDF indeed, and the same namespace (I tried with different namespaces, but still the same result).
The difference is only the name itself. During runtime, dynamic configuration should be holding two variables FileNameOne and FileNameTwo in memory. It should be possible to use these in the communication channels.
So I don't understand why both channels use the value of FileNameOne
Hello Zakaria,
Did you create 2 keys as well.
Please post ur UDF screenshot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you show me your mapping where you set the variables?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.