ORA-20001: Secondary key column identified wwas not located in the select l

Error in mru internal routine: ORA-20001: Secondary key column identified was not located in the select list of the query
I am receiving this error when I try and update a record in an updatable report (SQL QUERY Updateable). Two of the values being updated rely on a named LOV.
The SQL query for the report does pull in both the keys (there are two keys)....I am not certain why this is happening...any clues would be appreciated.
thanks. Karen

sorry. I thought I had made it current. It is now.
I am not certain if you will be able to run it as it is accessing our test tables. Will I need to move those tables to the workspace. I am also checking here to see if anyone has had experience. thankyou for your patience. I really appreciate it.
karen

Similar Messages

  • Report error: ORA-20001: Error fetching column value

    Hi,
    I try to build a tabular form with 1 column as "Select List (Query based on LOV)". This select list should display round about 1.100 rows in the LOV ordered by name. So I got the error: report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numerischer oder Wertefehler: character string buffer too small
    When I try tho define this column as Popup LOV (Query based LOV) only the the ID of the attribute and not the display value appeares in the row. The LOV it self displays the display number and not the the ID. I want to see the display value in the column of the particular row and the LOV and return the ID to the record by insert or update as it is normal in LOVs of form regions.
    This lot of rows in the LOV is necessary because it is a part to develop formulas like (number_of_acquisitions - number_of_old_parts)/100 or so. The most formulas will be more complex. In the database there should only be the ID as reference to the attributes.
    Please help me to display the attribute bases on LOV in every particular row.
    Thank you
    Siegwin

    In Apex 4 there is now a column type "Popup Key LOV (named LOV)" which is exactly what you are looking for.
    Edited by: 964978 on Oct 12, 2012 4:53 AM

  • Report suddenly showing ORA-20001: Error fetching column value: ORA-06502:

    Hi,
    Some reports in my applications are suddenly showing:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    instead iof the data they used to show.
    In my development system I can fix this by:
    1. changing the column alias in my sql
    select 'a' alias1 from dual becomes
    select 'a' alias2 from dual
    2. SAVE CHANGES
    3. change column alias back to original
    select 'a' alias2 from dual becomes
    select 'a' alias1 from dual
    4. reorder columns back to original in the 'report attributes' tab
    alias1 is now at the bottom of my colum list - i just bounce it up to column 4 using the up arrows
    5. SAVE CHANGES
    then everything starts working OK again.
    There seems to be nothing wrong with my sql as I can make it works on a new page or after I run the above steps, so I guess something is breaking somewhere but I cannot work out what.
    Has anyone else seen this? Does anyone know the cause? Does anyone have a fix for this that does not involve the above steps (plus redeployment to prodcution and all the work that involves)?
    I am seeing this on version 2.3 and 3.0.
    Thanks,
    Martin

    Hi Scott,
    I think this is want you want (sorry it's not easy to read):
    wp.suite_id - Database Column NUMBER - Report Column Based on LOV
    wp.project_id - Database Column NUMBER - Report Column Based on LOV
    wp.application_order wp_order - Database Column NUMBER - Report Column Standard
    lpad(wp.work_package_id,5,'0')||' - '||wp.name wp_name - Database Column NUMBER/VARCHAR2 - Report Column Standard
    pt.application_order pt_order - Database Column NUMBER - Report Column Standard
    pt.name pt_name - Database Column VARCHAR2 - Report Column Standard
    substr(pt.description,1,30) description - Database Column VARCHAR2 - Report Column Standard
    pt.application_tier - Database Column VARCHAR2 - Report Column Based on LOV
    pt.application_method - Database Column VARCHAR2 - Report Column Based on LOV
    pt.TECH_LEAD_ID - Database Column NUMBER - Report Column Based on LOV
    This report has no link columns and no derived columns.
    Regards,
    Martin

  • ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value

    I have an application made in devlopment which is working fine and i jsut migrated it to production but when i am running one of the page in the app in production it si throwing this error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"... this report is ment for generating report.
    Now what i have done, i compared both dev and prod environment but i have not found and changes except this one. In the page of both the application in dev and prod under shared component under under template the region of breadcrum and report region is showing in different position. i dont think it a problem because of that i am facing problem.
    If anybody have idea how could i recitfy the prbs i will be highly thankful to you
    Regards
    Adi

    friends i have seen where the error is coming but i am unable to trace out how to increase the size of lov which i have made.
    when i am taking display as select list(named lov) it is throwing me the error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small" but if i am taking display as "popup lov(named lov)" under tablular form element under one of the column in the report, it is working properly. but not shwoing the report the way we want it to show. For that reason i want to increase the size of the love which i have made.

  • Master Detail report   report error: ORA-20001: Error fetching column

    Hi All,
    I am a newbie in apex and try to create a master detail form, where the detail is displayed as a report.
    After inserting a new row in the master form i like to create the detail. It displays then ORA-01403: no data found
    I also insert in the database table the details. If i want to edit then it shows the following report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    Can anyone help me, because i am struggling for a week with this problem.

    Your problem seems to be related to the usage of primary keys. You have to look into that and get more details.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Getting ORA-20001: Creation of new object is not allowed: !!

    Hi Am getting ORA-20001: Creation of new object is not allowed while enabling constraints after importing the dumps from source to target datbase,can anyone assist me to fix this issue.

    Hi Osama/Mustafa,Thanks for your quick response,can you please explain me the following things-
    1)As i don't have privilege to run the DBA_XX views,am not able to run those queries-
    SELECT OWNER, TRIGGER_NAME, TRIGGER_BODY FROM DBA_TRIGGERS WHERE TRIGGER_TYPE IN ('AFTER EVENT', 'BEFORE EVETN') AND TRIGGERING_EVENT LIKE '%CREATE%';
    can you tell me what output it'll throw,based on this output how will we fix the issue.
    2)SELECT * FROM dba_sys_privs WHERE privilege = 'UNLIMITED TABLESPACE';
    why we need to check this privilege?as i don't have privilege to run this one in my db.
    3)select * from dba_source where upper(text) like upper('%Creation of new object is not allowed%');
    as i don't have privilege to run this one in my db,already i got the object name from my logfile
    and more you have quoted"This is an error of someone that coded purposely on your database, probably dba or a developer who has privilege and again it is in a database event trigger"
    4)can you explain me much more deeper about the root cause and as already sent note to my DBA,can you explain me the solution to fix this issue ?

  • ORA-20001:Error fetching column value:Query must  begin with SELECT or WITH

    Hi all,
    I have implemented an application with a master-detail form using Apex 3.1.2 and I imported that to Apex 3.2 on different server. Everything else seems to be fine except when I add detail record (clicking on Add Rows), I am getting following error.
    =================
    report error:
    ORA-20001: Error fetching column value: ORA-20001: Query must begin with SELECT or WITH
    ====================
    Both the databases have same version 10gR2. I didn't make any change after importing it as well. Can someone let me know what could be the issue? Thanks in advance.
    SHY

    May we know your first name?
    Can you put the application in your workspace on apex.oracle.com so we can take a look?
    Scott

  • Classic Report - report error:ORA-20001: Error fetching column value

    Hi,
    In Apex 4 I have created an SQL report which errors with ORA-20001: Error fetching column value: ORA-01403: no data found.
    It works fine if I hard code the start and end dates but fails when I use page items as parameters.
    I call a stored function as below:
    DECLARE
    l_sql VARCHAR2(4000);
    BEGIN
    SELECT ICDB_PCT_MRSA_POS_REP(v('P40_NEWSTARTDATE'),
    v('P40_NEWENDDATE'))
    INTO l_sql
    FROM dual;
    RETURN(l_sql);
    END;
    although I have used the :P40_NEWSTARTDATE form too, with the same result.
    Any suggestions will be welcome.
    Thanks,
    Chris

    Hi Chris,
    have you debugged if ICDB_PCT_MRSA_POS_REP is raising the no-data-found error or if it's the actual SQL statement which got returned?
    Comment out the call to ICDB_PCT_MRSA_POS_REP and return a hard coded SQL statement with
    return 'select [... here comes a sample sql statement returned by ICDB_PCT_MRSA_POS_REP]';to rule out that ICDB_PCT_MRSA_POS_REP is raising the error.
    BTW what is the purpose of the select from dual? Just call the ICDB_PCT_MRSA_POS_REP directly like
    return ICDB_PCT_MRSA_POS_REP(:P40_NEWSTARTDATE, :P40_NEWENDDATE);Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Short key for copy does not work all the time now.

    After I have installed the latest OSX - Yosemite, my short key for copy does not work all the time.  It is infrequent how it works. I'm using the same keyboard that I have always used, my wireless logitech keyboard for mac.  Please help.

    I've plugged in my default mac keyboard and the short key copy still does not work.

  • Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update

    Hello Experts,
    I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
    "Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
    And the business content activation is terminated.
    Can you please let me know how i could resolve.
    Thanks
    Padma

    Hi Amrit,
    Nice to know Toons suggestions have helped you to resolve your issue.
    There is one bug waiting to explode soon although.
    Check this out after your last insert
    INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
    last_update_system_id) (
    SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
    b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
    --INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
    --l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
    FROM mth_workday_shifts_d a ,
    SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
    FROM mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
    FROM mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
    FROM mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
    FROM mth.mth_equipments_d
    )b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key=l_plant_fk_key
    AND shift_date>=l_start_date
    AND shift_date<=l_end_date
    AND UPPER(a.shift_type)='BOTH'
    AND a.FROM_DATE IS NULL
    AND a .To_Date IS NULL
    --AND a.line_num=NULL
    AND a.shift_num IS NULL
    There is no COMMIT
    You may want to check that out.
    Cheers!!!
    Bhushan

  • Home Folders not located in the usual place....Please Help!

    I had a power failure this past weekend and now the client stations get the following error after logging in and selecting a group:
    "The Home folder for user "student1" is not located in the ususal place or cannot be accessed.
    I have done the following:
    1-Unshare and share share points
    2-Delete mcx_cache file in client station
    3-check host name
    4-Demote Server to recreate Home Directories
    I created a new user and group with this new directory after demoting and promoting the server to Open Directory Master and I still get the dreaded message that the Home Folders can't be accessed, any assisstance will be greatly appreciated!
    If I log in with a network user using the server, I can log in fine, also, if I go to the client computer and log in as a local user, and try to connect using the finder menu and a network user I have no problems. What else I can do to solve this issue!

    It looks something like this:
    Last login: Wed Jan 24 09:00:35 on console
    Welcome to Darwin!
    room312server:~ admin$ host 10.36.100.5
    5.100.36.10.in-addr.arpa domain name pointer room312server.18b115.nycboe.org.
    room312server:~ admin$ host room312server.18b115.nycboe.org
    room312server.18b115.nycboe.org has address 10.36.100.5
    room312server:~ admin$ dscl /Search - read/Users/student1 | grep HomeDirectory
    dscl (v20.4)
    usage: dscl [options] [<datasource> [<command>]]
    datasource:
    localhost (default) or
    <hostname> (requires DS proxy support, >= DS-158) or
    <nodename> (Directory Service style node name) or
    <domainname> (NetInfo style domain name)
    options:
    -u <user> authenticate as user (required when using DS Proxy)
    -P <password> authentication password
    -p prompt for password
    -raw don't strip off prefix from DS constants
    -url print record attribute values in URL-style encoding
    -q quiet - no interactive prompt
    commands:
    -read <path> [<key>...]
    -create <record path> [<key> [<val>...]]
    -delete <path> [<key> [<val>...]]
    -list <path> [<key>]
    -append <record path> <key> <val>...
    -merge <record path> <key> <val>...
    -change <record path> <key> <old value> <new value>
    -changei <record path> <key> <value index> <new value>
    -search <path> <key> <val>
    -auth [<user> [<password>]]
    -authonly [<user> [<password>]]
    -passwd <user path> [<new password> | <old password> <new password>]
    when I type lookupd this is what I get:
    room312server:~ admin$ lookupd -q mount
    dir: /Network/Servers/
    name: room312server.18b115.nycboe.org:/
    opts: net url==afp://;AUTH=NO%20USER%[email protected]///
    vfstype: url
    dir: /Network/Servers/
    name: room312server.18b115.nycboe.org:/Groups
    opts: net url==afp://;AUTH=NO%20USER%[email protected]/Groups
    vfstype: url
    dir: /Network/Servers/
    name: room312server.18b115.nycboe.org:/Users
    opts: net url==afp://;AUTH=NO%20USER%[email protected]/Users
    vfstype: url
    What do you mean by mounting the user share manually?
    Thanks for your assistance!

  • AT-MIO-16XE-50 device is not responding to the selected base address

    I'm trying to install my AT-MIO-16XE-50 DAQ board onto my Windows NT desktop computer, but I'm having trouble.
    Here's what I've done: I've installed LabView 5.1 and the NIDAQ 7.0 software onto my computer first. Then I've physically installed the DAQ board into my computer. After starting the computer, the plug-and-play system seems to recognize the new hardware and install drivers for it. It then says I need to reboot the computer, so I reboot the computer.
    When I then look at my device manager, it lists AT-MIO-16XE-50 twice. Under the properties/resources tab, one of them lists "input/output range", "interrupt request", "direct memory access", and "direct memory access" (i.e., 2 "direct memory access"s). The second one only lists "direct memory access" once and nothing else under the properties/resources tab. Also, the first one says that it is working properly while the second one says that it is not working properly (Code 10). I've played around with chaging the "direct
    memory access" numbers and after rebooting the computer have gotten both AT-MIO-16XE-50's in the device manager to say that they're working properly. So, now the DAQ board appears to be installed correctly, because the device manager reports no problems with it. However, there are still 2 of them. My first question is this: should there be only 1 entry in the device manager list, or are there supposed to be the 2 that I see? The entries do appear to be different from each other, but they're for the same device, so that's a little confusing.
    When I open my Measurement and Automation explorer, only one AT-MIO-16XE-50 device is listed (so this looks good), and under "properties" all 3 "direct memory access" numbers are listed. So, this all seems good. But, when I click on "test resources" or "test panel", I get an error message saying that "the device is not responding to the selected base address". Considering that this device was plug-and-play, and I did not set the base address manually, I don't understand why I'm getting this error message.
    What I've tried is to change the "input/output range" number by using the device manager. I've tried a few different settings (rebooting the computer after each change) and none of the different "input/output range" settings seem to work.
    I'd appreciate it if you could give me any help on figuring out how to resolve this "not responding to base address" problem. The info on your web site
    appears to suggest flipping dip-switches on the DAQ card, but my card does not have any dip switches because it is plug-and-play. So, right now I'm
    clueless! Thanks for reading this, and I hope that you have more insight than I do.

    Smaria,
    The AT-MIO-16XE-50 shows up twice in the Device Manager because it reserves three DMA channels, and the ISA bus only allows two DMA channels per ISA slot. You mentioned that you were able to get both devices working properly in the Device Manager. Below is a link to a KnowledgeBase that describes the proper procedure to successfully accomplish this. You should verify that this is the procedure you followed:
    Exclamation Mark Appears with Error Code 10 on Windows XP/2000/98 After Installing AT-MIO-16E-10
    Spencer S.

  • File vault: home folder is not located in the usual place...

    All of a sudden I get this error when logging into a filevault protected account.
    *The home folder for "XXXX" is not located in the usual place or cannot be accessed*
    The message goes on to warn me that the folder could have been moved or deleted or is on an unavailable network volume.
    I see that the sparsebundle is right where it should be. I tried searching this board, but I can't find anything threads discussing this error. So, none of the data is accessible. If it was a sparseimage I could just mount it under another user and get the data out, but I have no idea what to do to salvage a sparsebundle. Heck, I didn't even know they existed until 30 min ago.

    I have had no luck in fixing this. I've tried mounting the sparsebundle from the finder, disk utility, and the terminal and get an "Operation not supported on socket" error.
    opening the terminal while logged in to this account brings up a message along the lines of
    no home directory in /Users/AccountName
    Logging in with home = /
    So I thought it may be a permissions problem and reset them to be read write for user group and others, but still can't login or mount the sparsebundle from another account.

  • I am trying to sync my camera roll photos and videos to itunes, but it is not giving me the selection to do so. what do I do?

    I am trying to sync my camera roll photos and videos to itunes, but it is not giving me the selection to do so. What do I do?

    You import them as you would with any digital camera.
    Pics taken with iphone are not part of the sync process at all.
    iOS: Importing personal photos and videos from iOS devices to your computer
    iPhone User Guide (For iOS 5.1 Software)

  • Driver does not appear in the selection tab Windows8

    NDIS protocol driver does not appear in the Selection Tab and hence I can not run any tests on it. The client operating system is Windows 8 64bit Pro Premium. I tried reinstall driver several times, reboot client and studio machines, but with no results.
    Client itself is connected to the studio and is in "Ready" state.
    There was no problem running the test on the same driver with Win7 64bit client OS.
    HCK version is 8.59.29854
    The driver is build with DDK7.1.0
    Any hints on how to debug this would be helpful.
    Dmitry

    Have you uninstalled and re-install the HCK client on the test system?  This can cause the entry on the controller to not match up with the actual client system.  If this is the case, and you have done no testing on the system (as all results will
    be lost), please try this:
    1) Uninstall the DTM client from the test system.
    2) Delete the client entry from HCK studio in the machine management section.
    3) Reinstall the DTM client on the test system.
    4) Wait for client entry appear in the "Default Pool"
    5) Change client status to "Reset", wait for it to become "Ready", and try locating the target as I describe above.
    Paul - This posting is provided "AS IS" with no warranties, and confers no rights.

Maybe you are looking for