on 07-16-2012 10:41 AM
Hi all,
I've got a file (custom XML file) to IDOC scenario.
I am reading the xml file using a file adapter and when I try to do the mapping I get this error:
"Content is not allowed in prolog"
I have checked my xml file and it seems to be ok, but if I check the xml file in the file adapter I've got:
<?xml version="1.0" encoding="utf-8"?>
<ShippingOrder>
<Header>
<DeliveryNumber>80410647</DeliveryNumber>
<ConsigneeRefNo>83618</ConsigneeRefNo>
<RequestedDate>20120619</RequestedDate>
<ConsigneeCode>106976.....
.....
.......
My error is due to "" characters at the beginning of the xml file. But I have open the original xml file with notepad++ and I can not see that strange characters.
Is the file adapter adding this characters?¿?¿
Any idea to solve my problem?
Thanks.
Hi Antonio,
What you can see in the payload is called "Byte Order Mark", see more in Wiki here:
http://en.wikipedia.org/wiki/Byte_order_mark
I think normally these characters should be ignored by PI.
Are you manipulating the encoding in your sender File adapter? Can you try switching it from Text mode to Byte or the opposite, and see what happens?
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have also tried to use Schema validation in Sender agreement. Now I get the same error, but in sender adapter.
But I have open in notepad++ and I can not see that strange characters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.