sailpoint.object.Identity.links, could not initialize proxy - no Session

Hi all,

we are seeing the error during account and access provisioning for one of our Webservice applications in IIQ 8.5:

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

Following is the snippet of the logs after setting the sailpoint.workflow trace to true:

2026-05-20T15:27:15,197  INFO Workflow Event Thread 1 sailpoint.workflow.IdentityLibrary:3241 - Starting project execution
2026-05-20T15:27:15,197 TRACE Workflow Event Thread 1 sailpoint.workflow.WorkflowContext:138 - Entering getSailPointContext()
2026-05-20T15:27:15,197 TRACE Workflow Event Thread 1 sailpoint.workflow.WorkflowContext:150 - Exiting getSailPointContext = sailpoint.server.InternalContext@549b6a23
2026-05-20T15:27:15,775 TRACE Workflow Event Thread 1 sailpoint.workflow.IdentityLibrary:156 - Throwing provisionProject - org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
2026-05-20T15:27:15,775 ERROR Workflow Event Thread 1 sailpoint.server.ScriptletEvaluator:143 - Step call threw an exception:
2026-05-20T15:27:15,775 ERROR Workflow Event Thread 1 sailpoint.server.ScriptletEvaluator:144 - org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:612)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:591)
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149)
at org.hibernate.collection.internal.PersistentBag.iterator(PersistentBag.java:387)
at sailpoint.provisioning.IIQEvaluator.provision(IIQEvaluator.java:298)
at sailpoint.provisioning.PlanEvaluator.execute(PlanEvaluator.java:880)
at sailpoint.provisioning.PlanEvaluator.execute(PlanEvaluator.java:741)
at sailpoint.api.Provisioner.execute(Provisioner.java:1732)
at sailpoint.workflow.IdentityLibrary.provisionProject(IdentityLibrary.java:3264)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at sailpoint.server.ScriptletEvaluator.doCall(ScriptletEvaluator.java:134)
at sailpoint.server.ScriptletEvaluator.evalSource(ScriptletEvaluator.java:63)
at sailpoint.api.Workflower.evalSource(Workflower.java:6041)
at sailpoint.api.Workflower.advanceStep(Workflower.java:5280)
at sailpoint.api.Workflower.advance(Workflower.java:4667)
at sailpoint.api.Workflower.advanceSubcase(Workflower.java:5607)
at sailpoint.api.Workflower.advanceStep(Workflower.java:5200)
at sailpoint.api.Workflower.advance(Workflower.java:4667)
at sailpoint.api.Workflower.advanceSubcase(Workflower.java:5607)
at sailpoint.api.Workflower.advanceStep(Workflower.java:5200)
at sailpoint.api.Workflower.advance(Workflower.java:4667)
at sailpoint.api.Workflower.assimilate(Workflower.java:4317)
at sailpoint.api.Workflower.handleWorkItem(Workflower.java:7755)
at sailpoint.api.Workflower.processEvent(Workflower.java:2018)
at sailpoint.api.Workflower.processEvent(Workflower.java:2000)
at sailpoint.task.WorkflowerThread.process(WorkflowerThread.java:363)
at sailpoint.task.WorkflowerThread.run(WorkflowerThread.java:288)

2026-05-20T15:27:15,775 ERROR Workflow Event Thread 1 sailpoint.api.Workflower:4709 - An unexpected error occurred: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
sailpoint.tools.GeneralException: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
at sailpoint.server.ScriptletEvaluator.doCall(ScriptletEvaluator.java:149) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.server.ScriptletEvaluator.evalSource(ScriptletEvaluator.java:63) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.evalSource(Workflower.java:6041) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advanceStep(Workflower.java:5280) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advance(Workflower.java:4667) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advanceSubcase(Workflower.java:5607) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advanceStep(Workflower.java:5200) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advance(Workflower.java:4667) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advanceSubcase(Workflower.java:5607) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advanceStep(Workflower.java:5200) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.advance(Workflower.java:4667) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.assimilate(Workflower.java:4317) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.handleWorkItem(Workflower.java:7755) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.processEvent(Workflower.java:2018) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Workflower.processEvent(Workflower.java:2000) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.task.WorkflowerThread.process(WorkflowerThread.java:363) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.task.WorkflowerThread.run(WorkflowerThread.java:288) [identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Identity.links, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:612) ~[hibernate-core-5.5.9.Final.jar:5.5.9.Final]
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218) ~[hibernate-core-5.5.9.Final.jar:5.5.9.Final]
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:591) ~[hibernate-core-5.5.9.Final.jar:5.5.9.Final]
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149) ~[hibernate-core-5.5.9.Final.jar:5.5.9.Final]
at org.hibernate.collection.internal.PersistentBag.iterator(PersistentBag.java:387) ~[hibernate-core-5.5.9.Final.jar:5.5.9.Final]
at sailpoint.provisioning.IIQEvaluator.provision(IIQEvaluator.java:298) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.provisioning.PlanEvaluator.execute(PlanEvaluator.java:880) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.provisioning.PlanEvaluator.execute(PlanEvaluator.java:741) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.api.Provisioner.execute(Provisioner.java:1732) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at sailpoint.workflow.IdentityLibrary.provisionProject(IdentityLibrary.java:3264) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at sailpoint.server.ScriptletEvaluator.doCall(ScriptletEvaluator.java:134) ~[identityiq.jar:8.5 Build fb6698fe9f4-20250709-205815]
… 16 more
2026-05-20T15:27:15,775 TRACE Workflow Event Thread 1 sailpoint.workflow.WorkflowContext:138 - Entering getRootWorkflowCase()

@rabshrestha Please check your code to see if you are doing decache or passing the complete identity/applicaition object to any custom methods? This error normally occurs when the object which was load earlier in the memory is decache and you try to access it again.

Hello @rabshrestha

Thanks for posting query. By checking your logs it looks mostly that you are trying to use link object from existing identity object but you should have it from new object like given below:-


// Instead of using this
List links = identity.getLinks();

// Try to access using new object
Identity newIdentityObj = context.getObjectByName(Identity.class, identity.getName());
if (newIdentityObj != null) {
    List links = newIdentityObj .getLinks();
    
}

Kindly share more details around it. Let me know if it works for you.

There could be multiple reasons for this exception.

Please check specific workflow step logic.

If getLink() methosd is causing this problem, you can use sailpoint.api.IdentityService to call getLinks() method.

identityObj,.getLinks is not recommended. You should use IdentityService to get the links.

Can you share the code which is causing the issue?
Are you using getLinks in any of the before or after provisioning rules?
That is a common reason for this.