Skip to Content

Batch Call error in SAPUI5 application


I have a Save button and upon clicking I am trying to submit the changes to the backend. I am using a batch call to the gateway service.

When I see the network tab after click on the button, the batch operation status is in 'pending' and after sometime I am getting an 500 internal server error- time out connection.

The error screenshot message is attached.

Can anyone please help why I am facing this issue.

My controller code on action is below.

onSave: function() {

var that = this;

var aBatchOperations = [];

var oModel = this.getView().getModel();

var oLayout = this.byId("HeaderPage");

var editData = oLayout.getModel("EditHeader").oData;

aBatchOperations.push( oModel.createBatchOperation(this.updatePath, "PUT", editData, null) );



oModel.submitBatch(function(data) { //Logic to Check Response oModel.setUseBatch(false);"Operation Processed Successfully"); that.onNavBack();


}, function(err) {

oModel.setUseBatch(false); // open a fully configured message box, sap.ui.commons.MessageBox.Icon.ERROR, "Error", [sap.ui.commons.MessageBox.Action.OK], sap.ui.commons.MessageBox.Action.OK); });



V. Suresh Kumarerror1.gif

error1.gif (21.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Feb 15, 2017 at 07:13 PM

    can you check what is happening at the backend?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2017 at 12:15 PM

    Hello Suresh,

    1) Please ensure that "this.updatePath" contains unique parameter value that you want to update.

    for performing PUT operation you need to specify unique parameter in updatePath.

    2) Check whether you are getting data in "editData".

    can you send console error log.


    Mahesh Phajage

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mahesh,

      this.updatePath has a unique parameter value.

      We are getting the data in editData

      We didn't see any error in the console.

      The $batch operation is in pending state for sometime after that I am getting an error in the console log as '500 Internal Server Error, Connection Time Out'.


      V. Suresh Kumar