OIM log the following exception can be found.
<Error> <oracle.iam.identity.orgmgmt.impl> <IAM-3051005> <The organization search operation failed.
oracle.iam.platform.entitymgr.UnknownAttributeException: Organization : [SOME_ORGANIZATION_ATTRIBUTE]
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntities(EntityManagerImpl.java:1160)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.findEntities(EntityManagerImpl.java:1070)
at sun.reflect.GeneratedMethodAccessor1827.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at oracle.iam.platform.utils.LoggerInterceptor.invoke(LoggerInterceptor.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:37)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy492.findEntities(Unknown Source)
at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.performSearch(OrganizationManagerImpl.java:1302)
at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.search(OrganizationManagerImpl.java:1220)
at sun.reflect.GeneratedMethodAccessor2088.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
The root cause of this is related to the missing of UDF attribute reference of the organization object. To verify, check or to address the missing attribute one needs to check the Organization.xml file in MDS
/db/identity/entity-definition/Organization.xml
Each attribute of organization should be present under the following tags.
1. Entity attribute
<entity-attributes>
...
<attribute name="SOME_ORGANIZATION_ATTRIBUTE"></attribute>
...
</entity-attributes>
2. Target fields
<target-fields>
...
<field name="org_udf_SOME_ORGANIZATION_ATTRIBUTE"></field>
...
</target-fields>
3. Mapping
<attribute-maps>
...
<attribute-map><entity-attribute>SOME_ORGANIZATION_ATTRIBUTE</entity-attribute><target-field>org_udf_SOME_ORGANIZATION_ATTRIBUTE</target-field>
...
</attribute-maps>
No comments:
Post a Comment