Encoding special characters such as amp %2360 and

We are using SAP Business Connector 4.6.

I have a flow service where I accept an IDOC from SAP and map the data to customer XML format. I am setting the encode option in recordToDocument to ‘true’ and call http to post the document. But from the http response I still get a response XML not formed well. This happens when I include special characters in my IDOC to test the special characters. When I debug and look at the XML data before I post to http, it does look like it has transformed the special characters such as & to & <to> to > .

This is pretty urgent for me to resolve. I appreciate your immediate response.

My flow service steps are
SavePipelilneToFile
TransformFlatToHierarchy
Loop and map
RecordToDocument
http
bytesToString
StringToDocument
DocumentToRecord
Map and handle the errors

Thanks,
Roger