# Refresh All Users - Error (Roles)

**URL:** <https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [February 21, 2025, 4:05pm UTC](https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666 "2025-02-21T16:05:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![regilicha](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/regilicha/32/1022_2.png) [@regilicha](https://developer.sailpoint.com/discuss/u/regilicha)\
**Post date:** [February 21, 2025, 4:05pm UTC](https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666/1 "2025-02-21T16:05:30Z")

</div>

IIQ version 8.3 p4

 ![Screenshot 2025-02-21 093610](https://global.discourse-cdn.com/sailpoint/original/3X/c/f/cfe2a984f81ee10c35e50255a77482efd603a3d4.jpeg)

[RefreshWorker\_Error.txt](https://developer.sailpoint.com/discuss/uploads/short-url/7zz1dBL4JxcGOSkqg1G2L375Tu8.txt) (2.8 KB)  
[Remove\_Deleted\_Object\_Error.txt](https://developer.sailpoint.com/discuss/uploads/short-url/jphyeoSKKo5tkkxsh1Cp9SK0Vxo.txt) (3.8 KB)

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

Hello, hoping someone can help with this issue I am having when doing the Refresh All Users No Triggers task. I am getting the following message(s) in the task result:

An unexpected error occurred: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.assignedRoles, could not initialize proxy - no Session

When I go SyslogEvent, I see two error events as follows (full errors in attachments):

```auto
<SyslogEvent classname="sailpoint.provisioning.PlanEvaluator" created="1740150210585" eventLevel="ERROR" id="0a5d0687952817e2819529090019645a" lineNumber="1748" quickKey="0008239353" server="BCSRV774" thread="Thread-232" username="RequestHandler">
  <EventMessage>deleted object would be re-saved by cascade (remove deleted object from associations): [sailpoint.object.EntitlementGroup#0a5d068795021f808195231dd8ba759d]</EventMessage>
  <Stacktrace>sailpoint.tools.GeneralException: deleted object would be re-saved by cascade (remove deleted object from associations): [sailpoint.object.EntitlementGroup#0a5d068795021f808195231dd8ba759d]

```

And…

```auto
<SyslogEvent classname="sailpoint.task.IdentityRefreshExecutor$RefreshWorker" created="1740150212767" eventLevel="ERROR" id="0a5d0687952817e281952909089f6480" lineNumber="1655" quickKey="0008239354" server="BCSRV774" thread="Thread-232" username="RequestHandler">
  <EventMessage>RefreshWorker 1 exception: failed to lazily initialize a collection of role: sailpoint.object.Identity.assignedRoles, could not initialize proxy - no Session</EventMessage>
  <Stacktrace>org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.assignedRoles, could not initialize proxy - no Session

```

It seems like it’s telling me that I have a role with entitlements that don’t exist? But I’m not able to find how to search for these id#'s in the error messages.

The options in my Refresh task are:  
Exclude identities marked inactive  
Refresh assigned, detected roles and promote additional entitlements  
Provision Assignments  
Enable Partitions

---

<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:** [February 21, 2025, 7:43pm UTC](https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666/2 "2025-02-21T19:43:11Z")

</div>

check this thread has solution, let me know if that works

[Error during role refresh - IdentityIQ (IIQ) / IIQ Discussion and Questions - SailPoint Developer Community](https://developer.sailpoint.com/discuss/t/error-during-role-refresh/6334/3)

---

<div class="post-metadata">

**Author:** ![regilicha](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/regilicha/32/1022_2.png) [@regilicha](https://developer.sailpoint.com/discuss/u/regilicha)\
**Post date:** [February 24, 2025, 2:16pm UTC](https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666/3 "2025-02-24T14:16:32Z")

</div>

Kumar, thank you. I had found that thread and ended up doing the method to use the filter and refresh a subset of users at a time to narrow it down and find the users who were throwing the error.

---

<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:** [April 25, 2025, 2:17pm UTC](https://developer.sailpoint.com/discuss/t/refresh-all-users-error-roles/101666/4 "2025-04-25T14:17:20Z")

</div>

Closed on April 25, 2025, 2:17pm UTC

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