SAP Knowledge Base Article - Public

3504680 - Upserting via API doesn't accept same value for Start Date and End Date on background fields - Recruiting Management

Symptom

When upserting background information via API, entering the same value for both Start Date and End Date parameters results to an error:

Error on entity outsideWorkExperience - Fields: End date must be after Start date.

On the other hand, when same change is done via UI, either on External or Internal Candidate Profile (mobile apply / non-mobile apply), and Employee Profile, system accepts same date value for the Start Date and End Date background fields.

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

Upsert Outside Work Experience background data of a candidate via API:

Example (demo instance):

https://api68sales.successfactors.com/odata/v2/upsert/

{
    "__metadata": {
        "uri": "Candidate(1234)",
        "type": "SFOData.Candidate"
    },
    "outsideWorkExperience": {
        "__metadata": {
            "type": "SFOData.CandidateBackground_OutsideWorkExperience"
        },
        "startDate": "/Date(1718928000000)/",
        "endDate": "/Date(1718928000000)/",
        "startTitle": "Sample Only",
        "employer": "Sample Only"
    }
}
 
Result:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <entry>
        <content type="application/xml">
            <m:properties>
                <d:key>Candidate/candidateId=1234</d:key>
                <d:status>ERROR</d:status>
                <d:editStatus m:null="true"></d:editStatus>
                <d:message>Error on entity outsideWorkExperience - Fields: End date must be after Start date.</d:message>
                <d:index m:type="Edm.Int32">0</d:index>
                <d:httpCode m:type="Edm.Int32">400</d:httpCode>
                <d:inlineResults m:type="Bag(SFOData.UpsertResult)"></d:inlineResults>
            </m:properties>
        </content>
    </entry>
</feed>

Cause

Engineering Team confirmed that this inconsistency in behavior needs to be corrected.

Resolution

Engineering Team will proceed on system enhancement to change the system behavior to allow same date values on Start Date and End Date background fields when upserting via OData API.

This system behavior change is included on the road map and will be deployed as part of 2H 2024 Release:

  • Preview: October 14, 2024
  • Production: November 15-17, 2024

Click on Star button to bookmark this article in order to receive updates about this issue. For more information about updates from subscribed KBAs, you can refer to KBA 2171560 - How to mark a KBA or SAP Note as a favorite and get notified when it is updated - SAP for Me.

See Also

Keywords

API, Upsert, Start Date, End Date, Background, Outside Work Experience, Error, RCM-142494 , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM-CAN , General Candidate Issues (not Offers, not Profiles) , Problem

Product

SAP SuccessFactors Recruiting all versions