on 2016 Jul 26 10:07 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.