on 03-02-2009 12:53 PM
Hi,
We are trying to use Simple Variable Substitution. Our XI Version is XI 3.0 SP 15.
My Target structure is
Root
Target 0...1
A 0..1
B 0...1
C 0...1
I want to pick the file name from the B.
My Channel has the Following Variable substitution:
payload:root,1,Target,1,B,1
The value for B is set to "test".
I use NFS and Write the target file as myFile%test%.xml.
This gives an error :
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: B: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: B
Any pointers on How to Fix this.
Regards,
Abhishek
C
Hi.
I've got this.
MT_TEST
file
root
to get the file or the root from my message type, in variable substitution i make this :
payload : MT_TEST,1,file,1
payload : MT_TEST,1,root,1
So, if you want to get field B from this structure :
Root
Target 0...1
A 0..1
B 0...1
C 0...1
You'll have to put : payload:YOUR_MESSAGE_TYPE,1,Root,1,Target,1,B,1
Bye.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
see that you have used %test% in the channel
but is "test" your variable name ?..it should be your variable name and not content
Giving points is another way to say thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
don't use variable substitution on " XI Version is XI 3.0 SP 15 "
use adapter specific message attributes instead
variable substitution is a thing of a past (before SP14)
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this for the exact usage of Variable Substitution:
[http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm]
Can you post your some sample Target XML.
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.