SAP Knowledge Base Article - Public

2913898 - "Wrapped Exception" error when upserting data in User entity

Symptom

You are upserting data in the User entity but the API call is failing with the error below:

"Exception caught when saving user XXXXXXX: Wrapped Exception"

The result is records with correct data being skipped instead of being upserted.

Environment

SAP SuccessFactors HXM Suite

Cause

There are two different scenarios here:

  1. There are other exceptions being thrown in the API call and the failure is constant;
  2. There are no other exceptions being thrown in the API call and the failure is intermittent;

The first scenario is an expected behaviour for upserts in the User entity containing other exceptions errors (than not the "Wrapped Exception"). In these scenarios, all-or-nothing rule is considered so if one record causes an exception error, the remaining records are not processed. 

NOTE: Data validation errors are different than exception errors.

The second scenario is an unexpected behaviour caused by DB Transaction Rollback malfunction. Transaction Rollback is designed to prevents data loss due to concurrent update from another thread.

Resolution

For the first scenario, consider the other exception (than not the "Wrapped Exception") and correct your API request according it.

For the second scenario, a permanent fix has been given along with b2005 Release, so your integration should run fine after it. If the issue persists, please, raise a support ticket to SuccessFactors Integrations team (LOD-SF-INT).

Keywords

Wrapped, Exception, USER, API, Entity, UPSERT, DB, Transaction, Rollback, insert, skip, skipped, ignore, ignored, odata , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HCM suite all versions