Skip to Content
author's profile photo Former Member
Former Member

Error while parsing an XML stream

Hi all,

Iam trying an OData model create method.

This is my sample code,

onInit: function() {

this._oView = this.getView();

this.oModel = new sap.ui.model.odata.ODataModel("myurl", "true","myuserid","mypassword");



// On save button

handleSavePress: function() {

var emp = this.oView.byId("empId").getValue();

var name = this.oView.byId("nameId").getValue();

var city = this.oView.byId("cityId").getValue();

var obj = {};

obj.Id = emp;

obj.Name = name;

obj.City = city;



alert("Created Sucessfully");



alert("Error while creating");




while executing this code i'm getting an error in console as,

2015-08-27 11:29:06 [index.html] The following problem occurred: HTTP request failed400,Bad Request,{"error":{"code":"CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406","message":{"lang":"en","value":"Error while parsing an XML stream"},"innererror":{"transactionid":"55DCDC6D9FA63438E1000000C0A80103","timestamp":"20150827055102.2783640","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis ("},"errordetails":[]}}} -

Please help me on this.

Thanks in advance,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 27, 2015 at 07:27 AM

    May be wrongly passing some data. check with your metadata Properties type.

    obj.Id = emp;//If type is integer then you can't pass string values.

    obj.Name = name;

    obj.City = city;

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2015 at 07:09 AM


    Can you share the error in /IWFND/ERROR_LOG or get the Request payload data from the HTTP trace of the browser?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.