SAP Knowledge Base Article - Public

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


  • 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.

        <content type="application/xml">
                <d:key m:null="true"></d:key>
                <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>




Designed system behavior


The User Entity does not allow creation of users as 'inactive' directly.

However, if you have a Business scenario wherein you need to upsert inactive users, you can use the parameter 'processInactiveEmployees' in your Upsert request as follows-

This way the API will allow you to create Inactive users in the system.

See Also

2443073 - Unable to insert/upsert new inactive users in Bizx via SFAPI User Entity


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


SAP SuccessFactors HCM Core 1702 ; SAP SuccessFactors HCM suite all versions