Symptom
You're receiving 2 different errors when sending multiple POST requests to the TemporaryTimeInformation API at the same time.
In particular, when more than one such change is performed consecutively, one of the following two errors are returned and the process is not completed:
- "COE_GENERAL_BAD_REQUEST", "[COE0018]A similar temporary time information request was made a few seconds ago. Please refresh your page to view all the temporary time information requests."
- "COE_GENERAL_BAD_REQUEST","[COE0018][key=EMPLOYEE_HRIS_GO_OPTIMISTIC_LOCKING_EXCEPTION, values=[-1, 1, TimeManagementTask]] Messages:[key=EMPLOYEE_HRIS_GO_OPTIMISTIC_LOCKING_EXCEPTION, values=[-1, 1, TimeManagementTask]]"
"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 HCM Suite
- Employee Central
- OData API
Reproducing the Issue
- Enable API Payloads
- Trigger below API Upsert multiple times at a time:
{"__metadata": {"uri": "TemporaryTimeInformation('*****')"},"userIdNav": {"__metadata": {"uri": "User('*****')"}},"externalCode": "****","workSchedule": "***","startDate": "/Date(*****)/","endDate": "/Date(*****)/"} - Receive the error:
{
"error" :
{
"code" : "COE_GENERAL_BAD_REQUEST",
"message" :
{
"lang" : "en-US",
"value" : "[COE0018]A similar temporary time information request was made a few seconds ago. Please refresh your page to view all the temporary time information requests."
}
}
}
{
"error" :
{
"code" : "COE_GENERAL_BAD_REQUEST",
"message" :
{
"lang" : "en-US",
"value" : "[COE0018][key=EMPLOYEE_HRIS_GO_OPTIMISTIC_LOCKING_EXCEPTION, values=[-1, 1, TimeManagementTask]] Messages:[key=EMPLOYEE_HRIS_GO_OPTIMISTIC_LOCKING_EXCEPTION, values=[-1, 1, TimeManagementTask]]"
}
}
}
Resolution
This error originates from our system and is part of a validation mechanism designed to prevent the processing of duplicate TemporaryTimeInformation (TTI) requests.
When a TTI API request is received, the system temporarily stores it in memory for approximately 3 seconds. If an identical request is detected within this short window, it is considered a duplicate and automatically rejected.
This validation helps ensure that repeated submissions do not result in redundant or conflicting data processing.
See Also
Keywords
TemporaryTimeInformation API, UPSERT, multiple upsert, concurrent, consecutively, ODATA API, ODATA, COE0018, COE_GENERAL_BAD_REQUEST, UPSERT, SF, temporary time information requests, EMPLOYEE_HRIS_GO_OPTIMISTIC_LOCKING_EXCEPTION, TimeManagementTask , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem