on 11-20-2014 5:05 PM
Hi SDNites,
Sender structure is
Row
--Field1
-- Flag
Receiver 1 Structure is (Based on value of flag Receiver 1 or Receiver 2 is triggered)
Field2 (Mapped to Field 1 of Sender)
Receiver 2 structure is
Field3 (Mapped to Field 1 of Sender)
Variable substitution has to be applied on receiver side. Have used it like payload:Field1,1. But is is not working. Please suggest.
Regards,
Abhishek
Hi Abhishek,
As per my understanding the inbound payload is sent to two different receivers, based on the value of flag. In this case, you can check the below document.
Regards,
Deepak Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In this cases I use UDF function to define Dynamic Filename. This is the code:
try {
String filename = "";
DynamicConfiguration conf1 = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = conf1.get(key1);
filename = filename+".xml";
conf1.put(key1,filename);
return filename;
} catch(Exception e) {
String exception = e.toString();
return "FileName exception: "+exception;
}
You should add by parameter your field and later change this expression:
filename = filename+FieldParametre+".xml";
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhisek,
Have you set the complete path from the first tag to the desired one?
In your example would be: payload:Row,1,Field1,1
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Use like this -
I am assuming you are using two different file receiver channels...
For Receiver 1:
payload:MT_Name,1,Field2,1
For Receiver 2:
payload:Mt_Name,1,Field3,1
@Harish
>>Variable substitution will not work for multmapping scenario. Please check the below blog
It's DC which doesn't work for multimapping scenarios. Var substitution works fine
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Indrajit,
Below is the ouput payload,
</ns0:MT_Auth_OR02>
Regards,
Abhi
Hi Hareesh,
Thanks for your reponse.
Below is the error message.
MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.lib.ra.cci.XIAdapterException:
Message could not be forwarded to the JCA adapter. Reason: Permanent error: Adapter call failed. Reason: com.sap.aii.af.lib.ra.cci.XIAdapterException:
Message could not be forwarded permantely to the JCA adapter. Reason: {0}
Exception caught by adapter framework: {0}
Delivery of the message to the application using connection REST_http://advantco.com/xi/XI/REST failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.lib.ra.cci.XIAdapterException:
Also in communication channel Processing details below is the error,
Error : MT_Auth_OR02,1,Commercial_Id,1
Regards,
Abhi
>>>Delivery of the message to the application using connection REST_http://advantco.com/xi/XI/REST failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.lib.ra.cci.XIAdapterException:
what is your receiver adapter type? Is it advantco rest adapter?
Hi Sreenivas,
That problem was resolved.
Since Rest adapter Variable subsitution was not working, I have replaced it with File adapter to check variable substitution is working fine or not and I was getting this error in that configuration and it was due to the reason that I have harcoded value in the variable substitution and when I replaced with actual value which is payload:.... it starts working fine.
But Variable substitution in Rest adapeter to change the URL is not working.
Ex : http://abc.com/%dynamic value%.
Regards,
Abhi
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.