cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Character reference "" is an invalid XML character.

Former Member
0 Likes
2,214

Hi masters.

I am facing this error in a productive environment, please help me.

I have a MII BLS transaction with a SAP JCo Function Action Block named ZF_PP_PROCORD_PHASE_READ_TEXT, it returns a text.

Error in java default trace:

[Fatal Error] :4:3995: Character reference "&#31" is an invalid XML character

[Transaction: -1] Uncaught exception from ZF_PP_PROCORD_PHASE_READ_TEXT, Character reference "&#31" is an invalid XML character.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Three options:

1> Create a custom RFC for the same functionality which replaces &#31

2> Open OSS to SAP.

3> Try to set the transaction attribute LegacyProcessingMode = True

Former Member
0 Likes

Former Member

Please let me know how should be the replace sintax to replace the invalid character reference &\#31

HariCS23
Contributor
0 Likes

Michel,

It looks like a character in Prod Order text has non printable character which might be \r ( CR ) which will encode as ASCII character 31 and escaped as &#31 which is not allowed  in XML.

Can you debug your system on which PO its failing and try to fix the text may be removing the \r and see it it works??

Good luck !

Thanks

Hari