Skip to Content

HTTP Post Error: Changeset processing failed

Hi

I am getting Changeset processing failed error message even though i am not doing a batch call. My understanding is that you get this error if something goes wrong when doing a batch request. Maybe i am wrong

var oCountry = this.byId("Country").getValue();

var oCity = this.byId("City").getValue();

var oPopulation = this.byId("Population").getValue();

var oProperties = {

Country: oCountry,

City: oCity,

Population: oPopulation

};

var oModel = this.getModel();

var oContext = oModel.createEntry("/popSet",

{ properties: oProperties,

success: this._onCreateSuccess.bind(this)

});

this.getView().setBindingContext(oContext);

oModel.submitChanges();

What am I missing?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 26, 2016 at 11:14 AM

    Hello,

    By Default the Odata V2 model has batch mode set.

    Also from the sourcecode it is evident that you are using batch request from UI (Submit changes is used to submit a batch request with one or more operations).

    If you do not want to implement batch(which you should think twice as why you don't want) you can disable it with below code -

    oModel .setUseBatch(false);


    Then call the createEntry method.


    BR.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2016 at 12:31 PM

    Hi Timothy,

    Check the solution here since you are using a number in one of the request fields (potential conversion issue) but Ankit is right that the default processing is to use batch mode for the v2 ODataModel. You can use the method call to disable batch mode or you can also put this in your manifest.json for when it is instantiated:

    "myModel": {
         "dataSource": "myService",
         "settings": {
              "useBatch": false
         }
    }
    

    Regards,

    Ryan Crosby

    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.