Getting below error - An unexpected error occurred: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.capabilities, could not initialize proxy - no Session with below options on the identity refresh task
Refresh assigned, detected roles and promote additional entitlements
The main reason for this behavior is that the object’s state changes before you commit its state. To avoid this issue within a transaction or flow, do not modify the object’s state.
A simple solution is to refrain from passing the object to any method calls. Instead, always retrieve the object’s context and set the necessary data before saving.