Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8734

Error while parsing an XML stream: 'BOM / charset detection failed'.

$
0
0

Hello,

 

I'm trying to perform a deep insert via an OData create and I'm getting the error "Error while parsing an XML stream: 'BOM / charset detection failed'."

 

When trying with an external REST client like the Advanced REST Client in Chrome, with the same URL and the same JSON it works, but it won't work from UI5 application, where I'm doing smth like:

 

var oModel = new sap.ui.model.odata.ODataModel(uri, false);

oModel.refreshSecurityToken();

oEntry = [];

... some logic - here oEntry is being filled...

var my = JSON.stringify(oEntry);

oModel.create("/someEntity", my, null, null, ...

 

Can anyone help in solving this?

 

Regards,

Nico


Viewing all articles
Browse latest Browse all 8734

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>