# Refresh Identity cube error

**URL:** <https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [May 9, 2024, 12:30pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012 "2024-05-09T12:30:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amsingh1](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Amsingh1](https://developer.sailpoint.com/discuss/u/Amsingh1)\
**Post date:** [May 9, 2024, 12:30pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012/1 "2024-05-09T12:30:53Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.2

### Share all details related to your problem, including any error messages you may have received.

Hi Community,  
Suddenly I am getting this error in refresh identity cube task " Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [sailpoint.object.IdentityEntitlement#0a013c39897712aa81897e7fd334115c] ". When I checked under debug’s identity entitlement, I got the user and the entitlement. When I checked in the users application account the application is not there but initially it was there, have no idea how that got removed and what is the solution for this issue kindly help.

---

<div class="post-metadata">

**Author:** ![vishal\_kejriwal1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vishal_kejriwal1/32/10904_2.png) [@vishal\_kejriwal1](https://developer.sailpoint.com/discuss/u/vishal_kejriwal1)\
**Post date:** [May 9, 2024, 12:53pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012/2 "2024-05-09T12:53:21Z")

</div>

> [@Amsingh1](#):
>
> Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)

The problem that you have mentioned

- If your code is being accessed by multiple threads at the same time.
- How are you creating `session` object?

So if there are multiple threads accessing the same session and trying to update the same database entity, your code can potentially end up in an error situation like this.

So what happens here is that more than one threads try to update the same entity, one thread succeeds and when the next thread goes to commit the data.

---

<div class="post-metadata">

**Author:** ![pravin\_ranjan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/pravin_ranjan/32/6771_2.png) [@pravin\_ranjan](https://developer.sailpoint.com/discuss/u/pravin_ranjan)\
**Post date:** [May 9, 2024, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012/3 "2024-05-09T13:37:27Z")

</div>

Hi @Amsingh1

Please check below link, Hope this will solve your problem.

[Solved: Cube Refresh Errors - Compass (sailpoint.com)](https://community.sailpoint.com/t5/IdentityIQ-Forum/Cube-Refresh-Errors/m-p/161664)

Some other threads,

[Solved: sailpoint.tools.GeneralException: Row was updated or deleted by another transaction - Compass](https://community.sailpoint.com/t5/IdentityIQ-Forum/sailpoint-tools-GeneralException-Row-was-updated-or-deleted-by/m-p/170848)

---

<div class="post-metadata">

**Author:** ![AdamVentum](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/adamventum/32/10508_2.png) [@AdamVentum](https://developer.sailpoint.com/discuss/u/AdamVentum)\
**Post date:** [May 9, 2024, 8:21pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012/4 "2024-05-09T20:21:25Z")

</div>

Hi and Hello,

The error you’re encountering during the “refresh identity cube task” in SailPoint indicates a classic concurrency issue or a stale state problem. This type of error, `Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)`, often occurs when the database record the task is attempting to access has been changed or deleted by another process between the time it was read and the time the operation was attempted. Here’s how you can approach resolving this issue:

- **Review Logs:** Check the application logs for any other processes that might be interacting with the same data (Identity Entitlements in this case) at the same time. This can include other scheduled tasks, updates triggered by API calls, or manual changes.
- **Check Scheduled Tasks:** Verify if there are overlapping tasks that might modify entitlements or application accounts.

Regards,  
Adam

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 8, 2024, 8:21pm UTC](https://developer.sailpoint.com/discuss/t/refresh-identity-cube-error/56012/5 "2024-07-08T20:21:26Z")

</div>

Closed on July 8, 2024, 8:21pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
