SAP Knowledge Base Article - Preview

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

Symptom

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

  • 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

SAP SuccessFactors HXM Suite

 -OData Entities

Product

SAP SuccessFactors HCM Core 2511

Keywords

Inactive users, upsert, OData entity, error, processInactiveEmployees, parameter, user creation error, API error, status field, inactive status, system behavior, error index 0, user entity, OData API, true, false , KBA , ss_anonymizedkba , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , 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.