on 03-12-2015 3:48 AM
Hi Experts,
I am working on SAP PI 7.0 and File to Proxy scenario.
I need to read a XML file and send to ECC via Proxy..everytime it is failing in mapping because it has "UTF-16" in it as shown below.
<?xml version="1.0" encoding="utf-16"?>
this is not supported and hence i need to either change it to UTF-8 or remove this first line of an XML while reading from FTP only then it works.
Can someone please help me in doing this.
No FCC here..it is a plain XML file.
Thanks
It seems that your XML file is not valid UTF-16. Could you try to open the file with internet explorer?
Do you see chinese letters in it, like 㰊 (3c0a)?
First you should assure that the file is valid, then you should compare the file before and after send by ftp, it might change.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Smith,
Encoding can be changed using below options.
Option 1: - You can use modules to change encoding.
Work with character encoding in SAP PI. Section 4, page 5.
Option 2: - XSLT mapping.
Option 3: - Java mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Smith,
Try with XMLAnonymizer bean in sender File channel
anonymizer.encoding UTF-8
Regards,
Praveen Gujjeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
I tried with module bean..but it still failing..PFA the screenshots.
2015-03-12 01:50:49 | Success | Channel CC_FILE_XXX: Send binary file "/Itest.xml". Size 2083 with QoS EO |
2015-03-12 01:50:49 | Success | Anonimizer: anonymizing XML ... |
2015-03-12 01:50:49 | Success | Anonimizer: failed to anonymized due to java.io.IOException: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 3c0a, 6e49, 6576(:main:, row:2, col:5)(:main:, row=2, col=5) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 3c0a, 6e49, 6576(:main:, row:2, col:5) |
2015-03-12 01:50:49 | Success | Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System. |
2015-03-12 01:50:49 | Success | Trying to put the message into the send queue. |
2015-03-12 01:50:49 | Success | Message successfully put into the queue. |
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 3c0a, 6e49, 6576(:main:, row:2, col:5) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:187) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:151) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:118) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy204.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at
Hi Smith,
Check the below SAP Note.
821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Smith,
Please refer below document.
Regards,
Praveen.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.