cancel
Showing results for 
Search instead for 
Did you mean: 

An invalid XML character (Unicode: 0x1d) was found in the element

Former Member
0 Kudos

Hi Guys,

i am getting below error in moni,

An invalid XML character (Unicode: 0x1d) was found in the element content of the document

when i am taking source payload from moni and i tried to test with payload in mapping also i am getting same error.

Can any one help me on this...

Thanks,

Siva.

Accepted Solutions (1)

Accepted Solutions (1)

phanikumar_akella
Participant
0 Kudos

Hi Siva

1. Open the source file using Text Pad.

2. Go to Menu->View->Visible Spaces.

3. Identify the special char from the file. check if it is part of payload or an unwanted space special chars.

4. If it is unwanted part of your file/payload then try to negotiate with your client to ensure not to send these chars. If this is not possible try using a unix or dos script in OS Command of File Adapter.

Former Member
0 Kudos

Hi Phani,

Thanks for ur help..

i am unable to find out the special character , i compared with correct data and failed data, but i dont see any difference on that two. that correct data working fine. i am really wondering why it happening like this...

please advice me any other option to resolve this...

Thanks,

Siva..

SudhirT
Active Contributor
0 Kudos

Hi,

Install the hex editor and open your file then try to find out the specific character you are getting in error.

stefan_grube
Active Contributor
0 Kudos

> i am unable to find out the special character

Of course you are! All values beyound hex 20 are non-printable characters.

The question is: where does PI get the message from?

Check the source of the message.

Is it an SAP system? Is it standard? report to SAP

Is it custom development? Check the ABAP code.

Is it file/database/JMS? check sender system.

Former Member
0 Kudos

Hi Stefan,

This is my source xml in moni..

xmlns:prx="urn:sap.com:proxy:ECP:/1SAI/TAS5BFDF495190544E4B506:701:2008/06/06">

<SiteId>0080</SiteId>

<UCC>42027519 91029010015</UCC>

My interface is SAP(Proxy) to Database(Synchronous).

SAP (PROXY) --> PI --> DATABASE ( Synchronous Communication )

Let me know if u need any information from my side...

Thanks for ur help...

Thanks,

Siva..

stefan_grube
Active Contributor
0 Kudos

Is it standard ABAP proxy delivered from SAP? then create an OSS ticket.

Otherwise check your ABAP code, where the 1D character comes from.

Former Member
0 Kudos

Hi Siva,

Were you able to solve this issue,can you explain what steps you took to correct it.

Thanks

-Alok

Former Member
0 Kudos

Hi Alok,

just i remove that space then its working fine..its not failing now in mapping level...

Thanks,

Siva.

RameshGulipall
Active Participant
0 Kudos

Hi All,

I got the same error "Error: An invalid XML character (Unicode: 0x1a) was found in the element content of the document. (Software version: 1.0.2)".My scenario is SFTP -


>PI------->ECC.I checked above error in Sender Communcation channel.I can not able to find the payload of the meesages.Please provide the how slove your issue.

Regards,

Ramesh

Former Member
0 Kudos

Hi, Ramesh!

Look http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79f...

For your scenario is 3.1 item (File/FTP Adapter), after check sapnote 821267.

Best regards, Bakhtiyar

RameshGulipall
Active Participant
0 Kudos

Hi ,

Thanks for your reply!!

I write typ mistake my scenario using some content conversion in AS2---->PI-----ECC.The error is "Error: An invalid XML character (Unicode: 0x1a) was found in the element content of the document. (Software version: 1.0.2)".I can see this error in CC monitoring but i can able find the pay load of the meesage.

Please provide the solation for this issue...

Regards,

Ramesh

Former Member
0 Kudos

Dear Ramesh,

Please try to change RFC Destination setting to UNICODE poiting to XI system created in ECC and try again.

Hope this will help.

Regards,

Bakhtiyar

RameshGulipall
Active Participant
0 Kudos

Hi Bakhtiyar,

Message failed in sender adapter(AS2) while content conversion performed in adapter leavel.Please let me know how to find the payload of message and tell me how ingnore the specall charcters in messages.

Regards,

Ramesh

Answers (2)

Answers (2)

former_member463616
Contributor
0 Kudos

Hi Siva,

Please see the below links, it might be useful to you.

[Unicode_Guide|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e9a7cb90-0201-0010-45ae-9f4dd09c98f8]

[Link_2|]

Regards,

P.Rajesh

Former Member
0 Kudos

Well, seems the character being sent is invalid. Please review the encoding using the document below

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79f...

It also references some useful notes, please review them aswell.