SAP Knowledge Base Article - Public

3038710 - Record being updated can not be retrieved by a scheduled job running at the time of updating

Symptom

Unable to query the record at the same time when the record is being updated by another user. Record gets locked.

  

"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 Integrations

Reproducing the Issue

  • Make changes in a record and simultaneously try to fetch the same record. The record will be locked and won't be picked up in response. 

Cause

This is an Expected Behavior.

  

It's common practice for files to not be edited at the same time when the query is running in order to ensure data integrity.

  

  1. There is no workaround to deal with this situation.
  2. If the new added record or record where changes are being made is in the pages that have not yet been queried by the interface, we can fetch them.
  3. But if the changes are being made after their page has been queried by program then these can not be retrieved in the response.

  

Three Scenarios of Update and Query Explained:

  1. If the impacted user's page has already been queried by the program before the change is committed. It will be picked unchanged.
  2. If the impacted user's page is queried few seconds after the change has been made. Then changed data will be picked up.
  3. If the query is running on the user's page at the same time change is being made, then this user record will be skipped.

 

Resolution

  • It is highly recommended not to make changes in the record at the same time that are to be fetched by the query.

Keywords

Record Locked, User Locked, Update/Query Simultaneously , KBA , LOD-SF-INT-API , API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HXM Core 2011