I am trying to consume the oData Service by binding Table with oDataModel which fetch data and its count using $batch.
This will give me error
saying "Error when processing resource".
If I disable batch call by setUseBatch to false the odata will start working.
Since it was directly consuming data from CDS views and it was working earlier, there is no implementation issue.
I doubt some configuration is missing which is disabling the batch call and preventing it from reaching the Gateway server itself as there is no error shown in Error log as well.