SAP Knowledge Base Article - Preview

2430160 - Odata Upsert error: "Cannot upsert an inactive user.. with the index 0"

Symptom

  • Trying to upsert a new User record via Odata API.
  • Entity name is: 'SFOdata.User'
  • The status passed in the request for the field status is: 'f'/'inactive'.
  • It throws error message:  "Cannot upsert an inactive user.. with the index 0" as follows.

   <entry>
        <content type="application/xml">
            <m:properties>
                <d:key m:null="true"></d:key>
                <d:status>ERROR</d:status>
                <d:editStatus m:null="true"></d:editStatus>
                <d:message>Cannot upsert an inactive user..  with the index 0</d:message>
                <d:index m:type="Edm.Int32">0</d:index>
                <d:httpCode m:type="Edm.Int32">500</d:httpCode>
                <d:inlineResults m:type="Bag(SFOData.UpsertResult)"></d:inlineResults>
            </m:properties>
        </content>
    </entry>


Read more...

Environment

Successfactors

Product

SAP SuccessFactors HCM Core 1702 ; SAP SuccessFactors HXM Suite all versions

Keywords

Inactive users, Upsert, Odata entity, Error: Cannot upsert an inactive user.. with the index 0, processInactiveEmployees, parameter , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.