SAP Knowledge Base Article - Public

3349453 - "ToTal count of requests in one batch exceeds the limit 50." and "HTTP request was not processed because $batch failed" in Time Sheet UI

Symptom

Below error messages are raised when you record multiple entries without saving in between on Time Sheet UI.

ToTal count of requests in one batch exceeds the limit 50.
HTTP request was not processed because $batch failed

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors Employee Central - Time Sheet
  • SAP SuccessFactors Time Tracking

Reproducing the Issue

  1. Navigate to Time Sheet UI.
  2. Click on Record button for Working Times, On-Call Times, or Allowances multiple times without collapsing the records nor saving in between.
  3. Keep adding new records by clicking Record button, then the error messages would be raised.

Cause

When adding a new record on Time Sheet UI, several requests are triggered. One such request is for loading the valid items for certain input fields.
For example, this would affect the "Time Type" input field, but also all the custom fields for complex types (e.g. Cost Center).

All of these requests are accumulated into one single batch. So if several records are expanded, then the requests for each of these records get re-triggered and are added to this single batch. Therefore, depending on the number of expanded records and custom fields for complex types, we would exceed the limit of requests for a batch.

Resolution

This is a known limitation and we are working to have this improved. 

Due to the complexity of the improvement on this, it has to take two steps like below.

  1. First step:
    A short-term improvement has been provided with patch MS2306p6 (Jul.10, 2023 for Preview, Jul.13, 2023 for Production), so that this error only happens after adding the 9th or 10th record again. 
  2. Second step:
    A long-term improvement would be provided with 2H 2023 release, so that the request limit of a batch is never exceeded when adding new records.
    This can only come with 2H 2023 release at the earliest due to the complexity of the logic.

Before the final long-term improvement, below workarounds are still available to avoid the error when more than 10 records need to be added.

  • Please save the records individually one by one. That is, you can save directly after adding a new record.
    or
  • Please collapse all other records so that none is expanded, before adding a new record.

Keywords

WEF-122475, record, add, new, entry, multiple, several, random, TMS, UI, ttr, PTCH-41479, KI2305 , KBA , LOD-SF-EC-TMS , Time Sheet , LOD-SF-TTR , Time Tracking , Known Error

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HXM Suite all versions ; SAP SuccessFactors Time Tracking all versions