SAP Knowledge Base Article - Public

2669526 - Error to update Start Time and End Time in Employee Time MDF Object using OData API

Symptom

When trying to update startTime and endTime in the entity EmployeeTime you have received the following error message:

Save batch MDF object failed! 0:The start time and end time should be empty. with the index 0

Environment

SuccessFactors OData API

Reproducing the Issue

Try to update the startTime and endTime objects in the entity EmployeeTime with an API call.

Cause

In job information for an employee you can define whether to use duration based or clock-time based time recording.

If that field is not enabled / visible, duration based time recording is used by default.

If you choose time recording variant clock-time, you can assign start time and end time.

In duration based scenario, the mentioned validation error occurs when trying to update that data.

Resolution

In duration based scenario it is an expected behavior that start time and end time fields are not available hence this validation occurs when trying to update that data.

This happens because for duration based scenario the only thing that matters is the duration of the leave and not the start/end time.

To be able to update these fields you need to use the clock-time based scenario.

Keywords

  • SuccessFactors OData API
  • Save batch MDF object failed!
  • Error to update EmployeeTime
  • The start time and end time should be empty. with the index 0
, KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-EC , Employee Central , LOD-SF-INT , Integrations , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors HCM suite all versions