TcColumnNotFoundException with Lookup Query

Hi.
Im building this lookup query, but after installing the BP10A i'm having problems, I'm getting this error in the logs.
*<Oct 28, 2010 1:14:07 PM COT> <Notice> <Stdout> <BEA-000000> <ERROR,28 Oct 2010 13:14:07,152,[XELLERATE.WEBAPP],Class/Method: tcLookupFieldAction/selectedValue encounter some problems: {1}*
Thor.API.Exceptions.tcColumnNotFoundException
This is my Lookup Field definition:
Name: UD_FVCANAL_PTO_VTA, size=9
Properties:
Column Captions: lookupfield.header.lookup_definition.lookup_code_information.decode
Column Widths: 9,128
Column Names: LKV_ENCODED,LKV_DECODED
Lookup Column Name: LKV_DECODED
Lookup Query: select 57 as LKV_ENCODED ,'$Form data.UD_FVCANAL_CANAL$' as LKV_DECODED from dual
The lookup shows the data correctly, but when selecting a value, I get a windows with System Error, and the log reports the message shown above.
Am I missing Something ?
Thank You.

Hey folks, found this was related to a BP4 patch that modified the behaviour of the LookupField type. The "Column Names" property now should contain only the column name used to store the key value of the lookup to the database.
In other words both the Lookup Column Name and Column Names should be set to the one column that holds the value you want.
My setup went from this:
Lookup Query = select usr_login, usr_first_name, usr_last_name from usr
Lookup Column Name = usr_login
Column Widths = 100,100,100
Column Captions = User ID,First Name,Last Name
Column Names = usr_login,usr_first_name,usr_last_name
To this:
Lookup Query = select usr_login, usr_first_name, usr_last_name from usr
Lookup Column Name = usr_login
Column Widths = 100,100,100
Column Captions = User ID,First Name,Last Name
Column Names = usr_login
My issue is resolved.

Similar Messages

  • Issue with lookup query OIM9.1

    Guys,
    I am trying to set lookup query for my object form, but its giving me error "Required property not set". I have ran the query in sql client and its working perfectly fine.
    Thanks in advance.
    Thanks.

    Check this: LookupField with Lookup Query
    and Re: Lookup Column name
    and Re: Conditional forms
    and Re: Lookup Queries doesn't work when the source column is a ComboBox
    -Bikash
    Edited by: Bikash Bagaria on Dec 19, 2012 10:24 AM

  • 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.

  • 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

  • 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.

  • 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.

  • 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 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?

  • LOV with a query Bind Parameter

    Hello,
    I am following the JHeadStart PDF tutorial over the HR Schema. On the page 45 this tutorial shows how to make a Dynamic Lookup with a Query Bind Parameter to choose the employees of a department with the expresion "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}".
    After that I tried to make the same using a LOV instead of a Lookup but on the popup window opened with the LOV table the "#{bindings.DepartmentsDepartmentId.inputValue}" value is null and I can´t access to this information. If on the LOV definition I write for example "p_dpt_id=30" this work ok and filters the query for the employees of the departen 30, but not with "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}"
    There is another way to do that?
    Thank you very much

    I have done this task using the aid of the JHeadstart manual and these two previously posted threads,
    Group Used as LOV does not return records
    Query Bind Parameters and LOV's [JHS 10.1.3.1]
    The actual process to do it feels rather unintuitive and complicated, but I've tested it and thus far is works flawlessly.
    I whipped up a demo of this using the HR schema and JHeadstart, maybe I will post it on here.

  • How to get the requestee userlogin in lookup query

    Hi,
    I have a lookup query attached with a field in object form and in that query i am fetching the results based on requestee login. In the forums i could see USR_LOGIN = '$Requester Information.User Login$'. Is there any way to retrieve the requestee login. Thanks in advance

    I wonder that would ever be possible and here is the justification:
    You can add multiple benefeciaries/requestee in a request with a single Object Form. In such cases OIM doesn't want to confuse itself with the reasoning that it has to pass which out of all the existing benefeciaries. You can always do it using OIM tcRequestOperationsIntf API.
    By the way what does your use-case do in case of multiple requestee's in the same request.
    Thanks
    SRS

  • Best way to keep parameters associated with Listobject query table?

    I'm working to establish a standard approach to retrieving data from SQL server databases into Excel based applications.  My current proposed structure allows for exactly one Listobject with a query table per sheet in a workbook.  The connection
    strings and SQL texts for all queries in the workbook are kept in a single table on its own (hidden) sheet.  Each "Datasheet" then has a table and named cells QueryName, ConnectionString and SQLText which are scoped at the sheet level.  The
    connection string and raw SQLText are retrieved from the table using QueryName as an lookup value into the QueryTable.  There are a series of parameter cells whose values are inserted into the SQL text using =Substitute() formulas, where the raw query
    text has #P1#, #P2#, etc, which are subsituted with the parameter values from the parameter cells to assemble the final query text in the named cell SQLText.  To refresh the application, a simple VBA Sub iterates through all the sheets in the workbook.
     If the sheet contains a ListObject with a Querytable, then ConnectionString and SQLText are written to the .Connection and .CommandText properties of the QueryTable and the table is refreshed.
    This works great, but I have a developer who has asked to be able to put multiple Listobjects with querytables on a single sheet so he doesn't need so many sheets in the workbook.  My first though was why do you care how many sheets you have, but on
    the other hand a single sheet can certainly handle more than one ListObject, so... 
    If you're still with me, THANKS!  Here's the question.  If I have more than one ListObject on a sheet, I'll need a ConnectionString and SQLText cell for each one.  How do I keep them associated?  I could require the developer to name
    them ConnectionString1/SQLText1, ConnectionString2/SQLText2, etc. and then expect that ListObject(1) goes with ConnectionSTring1/SQLText1, etc. but I'm not sure that the ListObject index numbers will stay constant.  I could somehow link to the table name,
    but that can be changed...  Any ideas?  If this is too general a question, feel free to ignore.
    Thanks,
    J

     I could somehow link to the table name, but that can be changed...  Any ideas?
    Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
    If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
    However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
    Example:
    Insert a table (say Table1)
    Go to Define a name and insert a name of choice (eg.  ForMyTab1)
    Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
    =Table1[#All]
    Now if a user changes the table name then Table1 will also automatically change.
    Example code to to reference the table in VBA.
    Sub Test()
        Dim wsSht1 As Worksheet
        Dim lstObj1 As ListObject
        Set wsSht1 = Worksheets("Sheet1")
        Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
        MsgBox lstObj1.Name
    End Sub
    Regards, OssieMac

  • 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

  • Move sharepoint 2010 list to 2013 with lookup columns

    Hi all,
    Iam planning to move my sharepoint 2010 list to 2013.I done this using save site as template.But the look up columns are showing empty data.Can u please let me know the best solution to do this.
    Regards,
    Praveen

    The reason the lookup column doesn’t work anymore in your SharePoint 2013 list is because Save
    Site as Template, preserve all the list settings. Therefore, the lookup column still points to the original list which
    was located on your SharePoint 2010 list. The lookup column stores GUID of the web, list, and the field to which it points
    and GUID are unique IDs that identifies a list/library/site/feature in a farm.
    Using SharePoint Manager you can find the LookupList, LookupWebId and LookupField of
    your old SharePoint 2010 lookup column and compare it with your new 2013 lookup column. You will see the difference.
    There are two approach to get your values in lookup again.
    1(a). Create a new list and update the lookup values.
    1(b). Delete the lookup column and create a new lookup column and point it to the new list created in the above point.
    2. Update the SchemaXml property
    of the lookup column through SharePoint Manager.
    I will provide you with a good reference on how to use SharePoint Manager while managing your lookup columns. http://blog.johnsworkshop.net/moving-lists-with-lookup-columns-inside-your-site-collection/
    Please remember to click 'Mark as Answer' and Vote as Helpful if the reply answers your query.

  • Lookup query to get Manager ID value on object form

    Hi ,
    I have created a Manager ID field on object form which is of type lookup field.
    Can any one please tell me that how can i write Lookup query to get Manager ID value on object form.
    Thanks in Advance

    I was looking for something like this today too.
    Here's what I came up with:
    SELECT fu.user_id, fu.employee_id, fu.user_guid, pe1.full_name, pe2.full_name SUPERVISOR, pe2.employee_id
    FROM fnd_user fu
    JOIN per_employees_x pe1 on pe1.employee_id = fu.employee_id
    JOIN per_employees_x pe2 on pe2.employee_id = pe1.supervisor_id
    WHERE fu.user_id = $(user_id)
    Edited by: user12232265 on Feb 24, 2010 3:20 PM

Maybe you are looking for