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