My Oracle Support Banner

Process Pending Role Grants Schedule Job Throws Error: IAM-3056140:Cannot find a role for the criteria: Role Key-XX:Role Key:XX (Doc ID 2632358.1)

Last updated on JANUARY 19, 2022

Applies to:

Identity Manager - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

Process Pending Role Grants schedule job fails with error:

java.lang.Exception: There were some errors while executing the Pending Role Grants schedule job - An error occurred while granting role with key XX to user with key XXXX - IAM-3056140:Cannot find a role for the criteria: Role Key-XX.:Role Key:XX

 

The OIM diagnostic logs will capture the following error:

[2020-01-23T16:49:42.224-07:00] [oim_server1] [WARNING] []
[oracle.iam.scheduler.vo] [tid: OIMQuartzScheduler_Worker-8] [userId:oiminternal] [ecid: a8daf59b-1ccf-4948-834d-83935b2fd79c-000000be,0:243]
[APP: oim] [partition-name: DOMAIN] [tenant-name: GLOBAL] IAM-1020021 Unable to execute job : Process Pending Role Grants with Job History Id:169794[[
java.lang.Exception: There were some errors while executing the Pending Role Grants schedule job - An error occurred while granting role with key xx to user with key xxxx- IAM-3056140:Cannot find a role for the criteria: Role Key-xx.:Role Key:xx

at oracle.iam.identity.scheduledtasks.PendingRoleGrantsTask.execute(PendingRoleGrantsTask.java:236)
at oracle.iam.scheduler.vo.TaskSupport.invokeExecute(TaskSupport.java:434)
at oracle.iam.scheduler.vo.TaskSupport.access$000(TaskSupport.java:63)
at oracle.iam.scheduler.vo.TaskSupport$1.processWithoutResult(TaskSupport.java:342)
at oracle.iam.platform.tx.OIMTransactionCallbackWithoutResult.process(OIMTransactionCallbackWithoutResult.java:9)
at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:13)
at oracle.iam.platform.tx.OIMTransactionCallback.doInTransaction(OIMTransactionCallback.java:6)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at oracle.iam.platform.tx.OIMTransactionManager.executeTransaction(OIMTransactionManager.java:47)
at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:336)
at sun.reflect.GeneratedMethodAccessor1875.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.