I am getting this error in access request . I am making few updates to plan in before provisioning rule
I checked logs →
This is coming post execution of after provisioning Rule . Line items in my plan are executed but then I am getting this error. How to debug further? How to find exact root cause.
An unexpected error occurred: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
This exception occurs when you try to access a lazy-loaded association outside the scope of the session that fetched it.
Please, can you provide your code details to updat plan before provisioning?. Maybe your are trying update an object while this object is associated to other thread session
I’m also seeing this with my before provisioning AD rule. I’m not calling context at all in the rule. The only mention of links in this rule is a for getting links of an identity and looping them:
List accountList = manager.getLinks();
if(accountList !=null && accountList.size()>0) {
for (Link accountLink : accountList) {
//do stuff
}
It also doesn’t fail 100% of the time. It’s usually 1/10. Any ideas?