AD Organization Lookup Query

I am trying to set up OIM to provision to two different AD domains. I am trying to avoid the process of cloning the entire connector. So for know I just created two IT Resources and duplicated the Lookup.ADReconciliation.GroupLookup and Lookup.ADReconciliation.Organization objects. The Group Lookup is part of the IT Resource and hence didn't cause any problems.
The Organization Lookup is however defined at the form level. I need the list of Organizations to be specific to the AD Domain. I have done the following:
1. Created two IT Resources of type AD Server:
-- AD Server 1
-- AD Server 2
2. Created new lookup called Lookup.AD.OrganizationLookupITResourceMapping with the following values:
-- AD Server 1 == Lookup.ADReconciliaiton.Organization
-- AD Server 2 == Lookup.AD2Reconciliation.Organization
3. I then changed the "Organization Name" column to the following:
Lookup Query == select lkv_decoded, lkv_encoded from lku, lkv where lku.lku_key = lkv.lku_key and lku.lku_type_string_key = (select lkv.lkv_decoded from lku, lkv where lku. lku_type_string_key = 'Lookup.AD.OrganizationLookupITResourceMapping' and lku.lku_key = lkv.lku_key and lkv_encoded = '$Form data.UD_ADUSER_AD$');
Column Names == lkv_decoded
Lookup Column Names == lkv_decoded
Column Captions == Organization Name
Column Widths == 100
When I run the Preview Form I get the error message "Query Failed. Error: Dataset is not open". In the server logs I get "invalid character" exception from SQL. If I use SQL Plus and run this query, substituting for '$Form data.UD_ADUSER_AD$', I get the correct response. My guess is that the form data is not being returned as expected. What should I use here in order to receive the name of the IT Resource?
Thanks,
Pete

More information from the log files:
[2011-02-23T16:30:45.441-05:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000ItKRa^jC^qQSaauHOq1DPIEM0002nl,0] [APP: oim#11.1.1.3.0] [dcid: dc05021680aa4152:3b03b6fb:12e53163b22:-7ffd-0000000000002d5a] SELECT sdc.sdc_name, sdk.sdk_name from sdc, sdk where sdc.sdk_key=sdk.sdk_key and sdc.sdc_name = 'UD_ADUSER_AD' and sdk.sdk_active_version=sdc.sdc_version and sdk.sdk_key=(SELECT sdk_key FROM TOS WHERE pkg_key = )[[
java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
2011-02-23T16:30:54.309-05:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000ItKRcjKC^qQSaauHOq1DPIEM0002nw,0] [APP: oim#11.1.1.3.0] [dcid: dc05021680aa4152:3b03b6fb:12e53163b22:-7ffd-0000000000002d65] select lkv_decoded, lkv_encoded from lku, lkv where lku.lku_key = lkv.lku_key and lku.lku_type_string_key = (select lkv.lkv_decoded from lku, lkv where lku. lku_type_string_key = 'Lookup.AD.OrganizationLookupITResourceMapping' and lku.lku_key = lkv.lku_key and lkv_encoded = 'BAD QUERY or BAD FORM DATA'); and 1=2[[
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
So obviously my query is bad. How do I fix it?
Thanks,
Pete

Similar Messages

  • Lookup Query

    In Form Designer in OID grp form in properties tab
    In Lookup query
    I have tried giving option a,option b
    a)Select act_key from usr where usr_login='$Requester Information.User Login$'
    b)Select ACT_KEY from USR where USR.USR_LOGIN = '$Requester Information.User Login$'
    In lookup coloumn name=act_key
    In coloumn width =10,100,100
    In coloumn names=act_key
    in coloumn caption =act_key
    But when I am log in with any user, in process form for groups error is coming saying"Lookup properties not configured correctly"
    Please help me with exact query whto give in lookup query

    Refer this:
    User list lookup
    Column Names = usr_key,usr_first_name,usr_last_name
    Lookup Column Name = usr_key
    Lookup Query = Select usr_key, usr_first_name, usr_last_name from usr //(where act_key=123)
    Column Captions = User Key,First Name,Last Name
    Column Widths = 10,100,100
    Have you tried this:
    b)Select ACT_KEY from USR where USR_LOGIN = '$Requester Information.User Login$'
    In lookup coloumn name=act_key
    In coloumn width =100
    In coloumn names=act_key
    in coloumn caption =Organization Key

  • Lookup Query error: "Lookup properties not configured correctly"

    Hi!
    I have come up with some problems on configuring lookup query.
    I get this error: "Lookup properties not configured correctly" on admin console-->user-->manage-->selecting the user-->Resource profile-->edit the process form
    I created a table called "test_lookup" with the following columns: Oraganization, division and position (all varchars) in the database.
    For Lookup Query:
    This were the steps done on design console -->form designer-->properties tab:
    On " Grupo(lookupfied) " I set the following properties:
    Column widths = 100
    Lookup Query = select Organization from test_lookup
    Lookup Column Name = Grupo_teste
    Column Caption = Organization
    Column Names = Grupo_teste
    On design console for Lookup definiton I set the following:
    code: Lookup.KON.Grupo_teste
    field: Grupo_teste
    Lookup type: checked
    Required: uncheked
    Code key | Decode Key
    Organization Organization
    Any idea why this is hapenning? Any suggestion is more than welcome!
    Thank you.
    Kind Regards,
    Kon

    Refer this:
    User list lookup
    Column Names = usr_key,usr_first_name,usr_last_name
    Lookup Column Name = usr_key
    Lookup Query = Select usr_key, usr_first_name, usr_last_name from usr //(where act_key=123)
    Column Captions = User Key,First Name,Last Name
    Column Widths = 10,100,100
    Have you tried this:
    b)Select ACT_KEY from USR where USR_LOGIN = '$Requester Information.User Login$'
    In lookup coloumn name=act_key
    In coloumn width =100
    In coloumn names=act_key
    in coloumn caption =Organization Key

  • Error in using Lookup Query - OIM 11g

    Hi Guys,
    I am trying to use following lookup query:
    select usr_key, usr_login from USR where usr_status = 'Active' and have following mapping defined in the process form:
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    The values are getting populated properly while searching for the lookup. But when I click on 'SELECT' button. It throws error. saying 'A system error occurred'
    I see following error in the log:
    <Jul 4, 2011 7:19:07 PM IST> <Error> <XELLERATE.WEBAPP> <BEA-000000> <Class/Method: tcLookupFieldAction/selectedValue encounter some problems: {1}
    Thor.API.Exceptions.tcColumnNotFoundException
    at Thor.API.tcMetaDataSet.getStringValue(tcMetaDataSet.java:368)
    at com.thortech.xl.webclient.actions.tcLookupFieldAction.selectedValue(tcLookupFieldAction.java:1723)
    ### Steps to Reproduce Problem ###
    1. Create a new process form
    2. For one of the column, assign following properties:
    Lookup Query = select usr_key, usr_login from USR where usr_status = 'Active'
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    3. Activate the form
    4. Open the resource in Web Console
    5. Search for that lookup.
    6. Select any of the value
    7. Press 'Select' button. Error is thrown.
    Could somebody please help me out with this issue?
    Thanks,

    Got the solution:
    tcColumnNotFoundException with Lookup Query

  • Error running Organization Lookup Recon in OIM 11g R2 with Active Directory

    Hi all,
    I have an implementation of OIM 11g R2, with an Active Directory 11.1.1.5.0 connecting to an instance of Active Directory on Windows Server 2008. I am trying to run the "Active Directory Organization Lookup Reconciliation" scheduled task, but the job fails with this error:
    oracle.iam.connectors.icfcommon.exceptions.IntegrationException: Connector ConnectorKey( bundleName=ActiveDirectory.Connector bundleVersion=1.1.0.6380 connectorName=Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector ) not found
    This is the full stack trace from the oim_domain.log file:
    oracle.iam.connectors.icfcommon.exceptions.IntegrationException: Connector ConnectorKey( bundleName=ActiveDirectory.Connector bundleVersion=1.1.0.6380 connectorName=Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector ) not found
    at oracle.iam.connectors.icfcommon.ConnectorFactory.createConnectorFacade(ConnectorFactory.java:176)
    at oracle.iam.connectors.icfcommon.recon.AbstractReconTask.init(AbstractReconTask.java:115)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.execute(SchedulerBaseTask.java:382)
    at oracle.iam.scheduler.vo.TaskSupport$1.processWithoutResult(TaskSupport.java:135)
    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:128)
    at oracle.iam.platform.tx.OIMTransactionManager.execute(OIMTransactionManager.java:22)
    at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:116)
    at sun.reflect.GeneratedMethodAccessor739.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.scheduler.impl.quartz.QuartzJob$TaskExecutionAction.run(QuartzJob.java:266)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:75)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    The Connector Server is installed on the AD instance, and the key has been set, and used appropriately in the Active Directory Connector Server IT Resource in OIM.
    Any advice on how to resolve this error or on any possible causes would be much appreciated, thank you.

    From the installation media, copy and extract contents of the bundle/ActiveDirectory.Connector-1.1.0.6380.zip file to the CONNECTOR_SERVER_HOME directory
    Refer http://docs.oracle.com/cd/E22999_01/doc.111/e20347/deploy.htm#CHDDJGIG

  • OIM 9.1.0.1 Lookup -  Lookup Query

    Hi all
    We have already develop connector. But still have some questions...
    Parent process form with two lookup fields where second lookup values depends of the first lookup selected value.
    We have created second lookup like 'Lookup Query', yes we see right CODE, DECODE with relation of first lookup, and when pick value, only one value (DECODE or CODE) can be passed, not like simple Lookup ( when pick row ( DECODE and CODE ) saved to DB, and next review of the form field show DECODE value (but in mind) it is CODE) :)
    i want 'Lookup Query' with behavior of simple Lookup.
    any suggestions, it is possible?

    I'm positive there's a great way to do it with SQL, but you'll need to look at 4 tables:
    1) OBJ (Objects) - Here you are looking in OBJ_NAME for 'OID User', once found get the OBJ_KEY value for the row.
    2) OST (Object Status) - In this table, you can find all the statuses for the OID User resource based on the OBJ_KEY value. Look for the applicable ones and get the OST_KEY value for each row.
    3) OIU (Object Instance for Users) - Now you can query this table for all results where OST_KEY equals the desired values as found in step 2.
    4) USR (Users) - Here you can get the User ID's (usr_login), User Key (usr_key) or any other value for users to help with the query.

  • Add organization lookup to custom JSP

    Hi Experts !
    i am trying to add organization lookup link in my custom JSP pages i have added to OIM. the code of my page is given below. when i click on the link for "View Lookup Details", the pop up screen has following message displayed :-
    INCORRECT_FIELD_LIST
    list of fields is incorrect
    the code of the page is given below :
    <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tld/xellerate-tags.tld" prefix="tctags" %>
    <%@ page import="com.thortech.xl.webclient.util.FormField" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcLookupFieldForm" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcActionForm" %>
    <%@ page import="com.thortech.xl.webclient.util.tcMessageResourcesUtil" %>
    <html:html>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/style.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/calstyle_all.css">
    <body >
    <html:form name="appointmentForm" action="/appointment" method="post">
    Create Designation
    <table border="0" align="center" class="A11" >
         <tr>
    <td align="left" class="grbx" valign="top">
    ID
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="id" />
    </td>
    </tr>
              <tr>
    <td align="left" class="grbx" valign="top">
    Name
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigName" />
    </td>
    </tr>
    <tr>
    <td align="left" class="grbx" valign="top">
    Description
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigDescription"/>
    </td>
    </tr>
         <tr>
              <td align="left" class="grbx" valign="top">
                   Organization
              </td>
              <td width="35px">
              </td>     
              <td class="ControlLabel">
                   <tctags:lookupfield name="appointmentForm"
    property="desigOrg"
    windowheight="500"
    windowwidth="500"
                   lookupAPI="-2"
    methodName="findOrganizationsFiltered"
    className="Thor.API.Operations.tcOrganizationOperationsIntf"
    columnNames="Organizations.Organization Name, Organizations.Status"
                   selectionColumn="Organizations.Organization Name"
    columnLabelKey="request.requestDetail.organization"
    htmlFormName="appointmentForm"
    styleClass="Fields"
    iconsrc="images/lookup.gif"
    tabindex="6"
    maxlength="50"
    fixedFilter="Organizations.Status:Active" />
              </td>
         </tr>
              <tr height="100px">
              <td height="50px"/>
              </tr>
              <tr>
    <td height="50px"/>
    <td height="50px"/>
    <td align="right" class="grbx" valign="top" >
    <html:submit property="appt_saveCreate">Save</html:submit>
    <html:button property="clear" value="Clear" onclick="clearForm()" />
    <html:cancel property="appt_cancelCreate">Cancel</html:cancel>
    </td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    Any mistake i am making? (must be otherwise it would have been working :-) )
    Best Regards

    oookay got it going :-) . Was just a matter empty space in
    columnNames="*Organizations.Organization Name, Organizations.Status*"
    advice to myself....read logs carefully :-D

  • Can we make the Lookup Query more dynamic?

    Hello OIM gurus,
    I have a lookup field in my process form and I am entering the properties of this field with the design client, such as Column Names, Captions, widths, Lookup Query etc. I would like to make the Lookup query a little more flexible in that it can take in different lookup codes based on some criteria. To be specific, I would like the lookup query specific to each resource.
    A sample of my query is: 'select v.lkv_encoded,v.lkv_decoded from lkv v, lku u where u.lku_key=v.lku_key and u.lku_type_string_key='<my lookup code>'
    I have lookup codes that are specific to each resource and I would like to use these codes here. I see some things like $Process Data.xxx$ and I am not sure how to use this or change the lookup code dynamically. Or is there a totally different way to do this?
    Thanks in advance
    -SK

    Hi ,
    can anyone please let me know the exact usage of Lookup Quey. I tried to find out in OIM docs but end up with no luck. By this post i am able to write basic lookup query (find out the USR_Login from USR table). I have couple of queries which i am not sure about and will apreaciate if anyone could provide me answer
    1. We have to add property - Lookup Column names, Column names, Column width and Caption for lookup query. What are their usage and restrictions (what values we can use and what we cannot).
    2. I am using my lookup field currently in AD resource form. My requirement is to provide manager options to search for user (in AD resource form only) for his/her direct reports having AD account. For this i tried to lookup the query on UD_ADUSER table but it is giving me error (even resource form on console is not coming up) Does LookupQuery is not much flexible to query the connector tables. if so how can i compete my requirement.
    3. Does lookup querry (in resource form) provides you option to provide the filter as per user attribute value in OIM user profile.
    Thanks.....

  • Lookup Field with a Lookup Query on Process Form in OIM 11gR2

    Does anyone know how to render a field on a process form so that when modifying the field for the resource a "Search and Select" window appears and allows the user to search for the value based on the lookup query defined for the field in Design Console? The lookup field has been defined as a lookup query through Design Console and tested by previewing the form in DC. When creating the Form through OIM System Administration the field is created as a Text Field, not a Lookup. Creating a new Field through OIM System Administration only allows you to create the field using a lookup code not using a lookup query. I've tried to remove / add the field in the UI (create sandbox, customize, etc.) and add it back as a Input LOV but it doesn't get added and the error in the logs say java.lang.RuntimeException: Input LOV is not supported for this attribute, please make this attribute searchable in order to drop this as an input LOV. The field is defined as searchable in the Form Designer in OIM System Administration. In fact I can't even add it back as an ADF Input Text Field w/ Label, I suspect I'll have to "Regenerate" the form to even get it back on the form. Any help is appreciated. Next step is to try to export the sandbox, massage and import.
    Thanks,
    Ryan

    Finally got an answer out of Oracle after trying to figure this out as well. Apparently Lookup Queries are not supported at all by the R2 Web UI. They indicate that according to product management this will not be fixed.

  • Lookup query in OIM 11g R2

    Hi,
    I am written a lookup query in  child form to filter the lookup in designconsole . but the lookup query is not getting executed, The old lookup name is shown when i am opeing the form in web ui (systemadmin) formdesigner.
    Any suggestion why the lookup query is not working?

    From the installation media, copy and extract contents of the bundle/ActiveDirectory.Connector-1.1.0.6380.zip file to the CONNECTOR_SERVER_HOME directory
    Refer http://docs.oracle.com/cd/E22999_01/doc.111/e20347/deploy.htm#CHDDJGIG

  • LookUp Query in OIM

    Hi All
    I have to use the lookup query property for a lookup field type in my form.
    this is my query
    select lkv_decoded from lkv where lkv.lku_key=(select lku.lku_key from lku where lku_type_string_key='LookUp.Users.Brand') and lkv_encoded='ab'
    i have to display vale of lkv_encoded in my field.
    for that i have put values of 'lookup column name' and 'column names' properties in the property dialog box as lkv_encoded.
    now although it is returning proper value in preview form.
    but when i try to do this through console it is showing me "Contact System Administrator" error.
    please guide me regarding this.
    Thanks.

    Hi,
    I have already used lkv_decoded it was a typo mistake in previous post.
    I even tried using it as "select lkv_decoded as usr_login from lkv where lkv.lku_key=(select lku.lku_key from lku where lku_type_string_key='LookUp.Users.Brand') and lkv_encoded='ab' " and for values of 'lookup column name' and 'column names' properties in the property dialog box as usr_login.
    Is there any document regarding this that I can refer.
    It is still not working for me.
    Thanks in Advance.

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Lookup Query Variables

    Hi.
    I'm trying to feed a lookup field in a child form, with a Lookup query for provissioning .
    I'm trying to use this:
    select 100 as lkv encoded,'$Process Data Information.Profile Name$'  as lkv_decoded from dual
    also tried
    select 100 as lkv encoded,'$Object Data Information.Profile Name$'  as lkv_decoded from dual
    but no luck.
    Note: If I use '$Requester Information.Users Login$', I get the data
    Which variables can I use?
    Thank You.

    I've found this, which is just what I need.
    Can we make the Lookup Query more dynamic?

  • Problems with lookup query

    Hi all,
    I added a lookup query in a form.
    The query is:
    select lkv_encoded ,lkv_decoded from lookup_ad_folder_vw where lkv_encoded not in (select encoded from ad_folder_vw where usr_login = '$Requester Information.User Login$')
    I need to filter by the beneficiary's username.
    This query works if the request is a self-service request. But if it is requested by other people, it doesn't work. Because the parameter "$Requester Information.User Login$" gets the requester login.
    My question is the follwing:
    How can I get the beneficiary's username?
    Are there any workaround for this?
    Thanks,
    Ariel

    As this looks moreover like a Object Form, so their is nothing you can do in this query to get the Beneficiary's username. The reason is simple that you can select multiple target users in the same request with the same Object Form and OIM in that case would not be aware as to which information from all the beneficiaries should be supplied.
    If this would have been a Process Form then individual beneficiary username could directly be mapped as every user would have its own sub-thread in that case during provisioning.
    Thanks
    SRS

  • Problem with lookup query in clustered enviornment!!!

    Hi,
    I have a lookup query in object form which will bring all users in OIM. It works fine on Standalone. But what I really dont understand is that when I use the same lookup in clustered enviornment(weblogic cluster and oracle DB cluster) it doesnt work. it brings up empty lookup.
    My lookup query is configured with the following properties:
    Defined field in object form
    - LookupQuery, Select usr_login, usr_first_name, usr_last_name from usr
    - Column options, User ID,First Name,Last Name
    - Column Names,usr_login,usr_first_name,usr_last_name
    - Lookup column name, usr_login
    - Column width, 10,100
    Thanks,
    doki
    Edited by: doki.prasad on Jun 9, 2009 11:25 AM

    Did you resolve this issue? I see a similar problem
    Thanks.

Maybe you are looking for

  • HSlider used for time/ranges

    I have an app that needs to program open/close hours. So far I have a HSlider that starts at 0 and ends at 86400 (seconds in a day). I can easily convert the second value to a standard date time value, so all works great as long as I only want standa

  • Flash redraw problem in IE

    Hello, I'm using Windows 2000, developing with Flash MX 2004, testing on Firefox 1.5.0.8 and Internet Explorer 6.0 SP1. I have an html page with multiple flash objects, embedded using SWFObject. In Internet Explorer, when I refresh the page or naviga

  • Processor Speed with Apple Color

    Whats the lowest processor a Powermac can have in order to run color at a good rate?

  • Change mono .mov file to stereo (Canon 5D Mark II).

    I recorded a bunch of movie files with my 5D mark II. These all have a good right channel but an empty left channel (mono mic setup) so I only hear audio out of one side. What I need is to fix up these video files so that I can deliver them to a pers

  • OpenCluster (reason: 5).

    We are observing the below error after every fail over  in the cluster environment .Is this normal error. Event Id:324 Soruce:SQLSERVERAGENT Error:OpenCluster (reason: 5).