on 06-13-2013 3:51 PM
Hi ,
I am working on Proxy --> PI --> File scenario. At receiver end, we are using SFTP adapter.
I am getting the below error while using variable substitution but it works fine with FTP adapter.
"Delivery of the message to the application using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: javax.resource.ResourceException: The variable substitution can not be parse the message xml: Content is not allowed in prolog."
please suggest me .
Thanks
Dhileep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the exactly same problem, and resolved it with this simple UDF:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System","FileName");
conf.put(key, NAME_FILE_VAR);
return "";
put it, into your massage mapping and then use the ASMA to get the filename
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhileep,
i suspect there might be spaces before the xml prolog in the message coming to the adapter. This makes a xml message not well formed.
/Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhileep,
Hope you have taken a look at the links below:
http://scn.sap.com/message/13681806
http://scn.sap.com/thread/2030198
http://scn.sap.com/thread/3278764
Hope it helps!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
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.