cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid at the top level of the document. Error processing resource

0 Kudos

Hello Experts,

We have a scenario where the ABAP Code will write an xml file to the application system(AL11 Directory) and PI Sender File channel has to pick the file and send it to the Webservice through receiver SOAP Adapter.

Here the problem is, we are unable to see the xml payload in Message Monitoring as it is giving the  error as in Subject.

Could you please suggest what's wrong in the xml file.

Thanks

Vijay Kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

thank you all

former_member193376
Active Contributor
0 Kudos

if your issue is resolved, please update the thread with solution and close the thread.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Vijay,

The first three characters you see before the xml declaration is called the BOM. If you use a hex editor, the correct bom for UTF-16 is FF FE or FE FF, but in your case it looks like EF BB BF which is a BOM for UTF-8. Ask the sender to change the encoding to UTF-8 and it should work or they can remove the BOM.

Screenshot taken from Wikipedia.

Regards,

Mark

former_member193376
Active Contributor
0 Kudos

Hi Vijay,

your xml is not well formed, if you see in your screenshot, before the <?xml version.....?> tag there are characters which should not be there, please check the ABAP code output. Modify the program to remove the characters before the xml.

Regards,
Saiyog