Skip to Content
Jan 21, 2020 at 06:53 AM

SAP CPI - Invalid white space character (0xf) in text to output


Dear All,

I am trying to Convert a Json to XML. In the input json, I have a hexa decimal character - \u000f

Because of that, JSON to XML conversion fails. I am trying to replace the hexa decimal character by using replace method in the String. But it is not getting replaced. The same code works well in my local groovy script.

Input Payload:


Error Message:

An internal server error occured: Invalid white space character (0xf) in text to output (in xml 1.1, could output as a character entity).

Note: When I tried to see the length of the Body Message, I am getting it as 21 for the input payload. But in my local, its length is 16. The Hexa decimal character is not recognized as single character in SCPI.

Please provide your suggestion to solve the issue