Failed to execute SynchronizeUserEvent. ERROR MESSAGE: ImsRuntimeException:No items found

Document ID : KB000118770
Last Modified Date : 31/10/2018
Show Technical Document Details
Issue:
We are seeing the tasks getting failed in the IDM environment on Synchronize User events:

“Failed to execute SynchronizeUserEvent. ERROR MESSAGE: ImsRuntimeException:No items found”.

This happens in cases of user creation tasks during the synchronize user event.
Cause:
The application server log indicates that the failure occurs during "synchIdentityPolicies":

14:40:52,388 ERROR [com.netegrity.ims.exception.EventExecuteStateException] (Thread-57 (HornetQ-client-global-threads-1958183146)) Exception: : [facility=4 severity=3 reason=0 status=6 message=Unrecognized command]
No items found
at com.netegrity.llsdk6.imsimpl.securityengine.PolicyEngine.synchIdentityPolicies(PolicyEngine.java:1475) [imsapi6.jar:]
at com.netegrity.llsdk6.imsimpl.provider.SynchronizationProviderImpl.synchronizeUserWithIdentityPolicies(SynchronizationProviderImpl.java:61) [imsapi6.jar:]
at com.netegrity.ims.events.SynchronizeUserEvent.execute(SynchronizeUserEvent.java:114) [ims.jar:]........

The code is checking for ID policies that apply to the user, however it has come across a policy that is problematic. Often this error occurs when there is an Identity Policy referencing a provisioning role that no longer exists or its name has been changed.

Review your Identity Policies and verify they are referring to the correct roles/rolenames.
Resolution:
Review your Identity Policies and verify they are referring to the correct roles/rolenames.