Hey @harsh_gupta4 !
Failed to lazily initialized is an old popular error for IIQ. Most often people get this in rules and workflows by persisting sailpoint.objects (usually identity) in rules or between workflows rather than passing a name or Id and only calling the object when you need it.
For example you have a workflow variable for the whole “identity” object rather than one for the identityName. You should not do this. Instead pass the identityName and only call the whole object in steps where you need it.
My guess would be that your aggregation or more likely identity refresh is launching a workflow that has one of these bad programming paradigms in it. It can be a large pain to track down because a refresh task for instance may launch many workflows and it’s hard to know exactly which one it might be coming from. If it is causing the task to fail outright then it’s best to trace the log and see if a workflow or rule was running right when it failed.
If you check the old communities.sailpoint.com you will find dozens of threads on this topic. Here are a few:
In case you didn’t know you have to sign in with your community account to view those threads on the old forum.