ORA-01405: fetched column value is NULL

Hi All,
I am using OWB 10gR2 and DB 10gR2. I am getting the following error while executing the mapping,
ORA-01405: fetched column value is NULL.
I have used NVL function for the measure columns, but the problem is not solved.
Can anybody please tell me solution,
Thanks in advance,
Siva

Hi Siva
It may be that you've taken care of null value in just one place and now, the error is coming
from somewhere further down the line.
Regards
Arif

Similar Messages

  • Help Needed: Facing the error ORA-01406: fetched column value was truncated

    Hi Everyone,
    When I run a particular PL/SQL query using Oracle 9i ODBC driver, it is working fine and fetching me the desired results.
    However, when I run the same query using the Oracle 10g ODBC driver, I am getting the error: ORA-01406: fetched column value was truncated.
    I have checked all the fields of the table and they are well within the allowable limit.
    Can you please let us know what needs to be done to resolve this issue?
    Thanks and Regards,
    Sudhindra

    Well it's obviously a problem with the client software. Doesn't Datastage have some way of configuring these things?
    rgds, APC

  • Weird ORA-01406: fetched column value was truncated error for SELECT query

    DB version:10gR2
    When one of our application fires the below query, we get
    ORA-01406: fetched column value was truncatederror.
    select     trk_dtl,
         trk_type,
         trk_id,
         trk_desc,
    from     shp_dtl
    where     shp_type = 'HN'
    and     shp_type = 828;The documentation says
    Cause:In a host language program, a FETCH operation was forced to truncate a character string. The program buffer area for this column was not large enough to contain the entire string. The cursor return code from the fetch was +3.But when the application is pointed to an identical schema in the same instance, we don't get this error. So, this has got nothing to do client application as the documentation says.
    Any idea what other possibilities are there?

    Post description of shp_dtl.

  • How to resolve ORA-01406: fetched column value was truncated

    I tried to export with the parameter full=yes....when i did tat i ma gettin ORA-01406: fetched column value was truncated error...
    the following gives the sequence
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    EXP-00008: ORACLE error 1406 encountered
    ORA-01406: fetched column value was truncated
    EXP-00000: Export terminated unsuccessfully
    pls revert back with an answer....

    http://www.orafaq.com/forum/t/145219/2/

  • ORA-01406: fetched column value was truncated

    When I execute a query, this erro appear.
    What this error means?
    Thanks.

    Hi,
    A buffer area in your program is too small. Try to increase it.
    hth
    Paolo

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

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

  • 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

  • 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

  • How to avoid to check if a column value is NULL?

    Hi, I'm a newbee in Oracle.
    I have a procedure like this:
    create or replace
    PROCEDURE get_employee
         v_first_name IN VARCHAR2 DEFAULT NULL ,
         v_middle_name IN VARCHAR2 DEFAULT NULL ,
         v_last_name IN VARCHAR2 DEFAULT NULL ,
    To select rows with matching multiple column values, I can simply do this:
    SELECT *
    FROM employee
    WHERE first_name = v_first_name
    AND middle_name = v_middle_name
    AND last_name = v_last_name
    The problem is v_middle_name can be NULL. This means,
    I need check if v_middle_name is NULL, and if it is, I need use "IS NULL" instead, like this:
    SELECT *
    FROM employee
    WHERE first_name = v_first_name
    AND middle_name IS NULL
    AND last_name = v_last_name
    It seems very cumbersome to do a check for each column that can be null.
    Is there a way that I do not need to do a check for every column?
    or is it better to avoid having NULL values in those columns (and replace them with, say a space) ?
    Thanks in advance.
    Simon

    Normally, you would do something like
    SELECT *
      FROM employee
    WHERE first_name = NVL( v_first_name, first_name )
       AND middle_name = NVL(v_middle_name, middle_name )
       AND last_name = NVL(v_last_name, last_name )Of course, if you can ensure that NULL data is not allowed (without creating phony non-NULL data), that is a good thing. In most systems, for example, it is probably reasonable to require a non-NULL first and last name. But you almost certainly cannot require a middle name.
    Justin

  • Id column values for null objects

    If I have something like the following, where B.id is mapped to an INTEGER
    column in A's table, Kodo wants to store a NULL value into the column. This
    doesn't work if the column is specified as NOT NULL. Is there a way to
    configure Kodo to use some predefined integer value instead, such as 0
    or -1?
    class A {
    int id;
    B b;
    class B {
    int id;
    A a = new A();
    a.id = 123;
    a.b = null;
    pm.makePersistent(a);
    pm.currentTransaction().commit();

    I'm not sure what you mean by "value mapping." In my case, I am mapping a
    null reference to another object. I am using application identity. Here's a
    more complete example (still very abbreviated, but hopefully complete
    enough):
    class A {
    static class Id { int id; }
    int id;
    B b;
    class B {
    static class Id { int id; }
    int id;
    int value;
    create table A (ID integer not null, BID integer not null)
    create table B (ID integer not null, VALUE integer)
    <jdo>
    <package name="test">
    <class name="A" objectid-class="A$Id">
    <extension vendor-name="kodo" key="table" value="A"/>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="ID"/>
    </field>
    <field name="b">
    <extension vendor-name="kodo" key="id-data-column" value="BID"/>
    </field>
    </class>
    <class name="B" objectid-class="B$Id">
    <extension vendor-name="kodo" key="table" value="B"/>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="ID"/>
    </field>
    <field name="value">
    <extension vendor-name="kodo" key="data-column" value="VALUE"/>
    </field>
    </class>
    </package>
    </jdo>
    A a1 = new A();
    a1.id = 123;
    a1.b = new B();
    a1.b.id = 456;
    a1.b.value = 999;
    pm.makePersistent(a1);
    A a2 = new A();
    a2.id = 789;
    a1.b = null;
    pm.makePersistent(a2);
    pm.currentTransaction().commit();
    The inserts for table A look something like this:
    insert into A (ID, BID) values (123, 456)
    insert into B (ID, VALUE) values (456, 999)
    insert into A (ID, BID) values (789, NULL)
    The NULL value fails because the column is specified as NOT NULL
    (pre-existing schema scenario).
    What I need to be able to do is specify what value gets inserted for null
    object references. Kodo is inserting NULL. I need to insert -1.

  • What is odiref. function to fetch column value from data store

    Hi
    Please Provide ODI Ref Function  to fetch the column value from source/target data store
    for ex: i want to fetch deptno from dept table by using odiref function.
    Thanks
    Cnu

    Hi Cnu,
    There are no odiRef functions to get data from source/target tables. Rather you can generate such query using odiRef functions and then use such query in the source command text. The retrieved data columns can then be used int eh target side command. You can find more details t Introduction to the Substitution API - 11g Release 1 (11.1.1)
    Thanks,

  • Tabular Form: ORA-20001: Error fetching column value: ORA-01403: no data fo

    Hi,
    Generating some custom error messages with APEX_ERROR.ADD_ERROR at the "Before Header" process point seems to break the display of tabular forms:
    http://apex.oracle.com/pls/apex/f?p=26409:2
    but work OK for other forms:
    http://apex.oracle.com/pls/apex/f?p=26409:1
    I've read other posts saying recreating edited tabular forms will fix the error, but this is a brand new tabular form out of the wizard and this is reproducible at will.
    Any ideas? Here are the workspace parameters in case anyone would like to take a look:
    name: BNTEST, user: DEV, pw: DEV

    >
    I looked into collections but I didn't like the thought of the user potentially loosing extensive edits as his session expires.
    >
    Correct but how would you resolve this. Data only exists in the browser as long as you wont submit your page.
    So even if your session expires and you don't use collections you will still loose your data.
    I always prefer to use collections with tabular forms cause this gives the user the possibilety to cancel their changes without that it's been written to the database.
    I think that it's better to have no data then faulty data.
    I know that it takes a little more effort to use collections but in the end you'll be glad that you did it. ;)
    Regards
    Nico

  • Update Upper row column value in null column in sql 2008

    Hi All,
    I want to update Upper row value into lower null value column dynamically . i have 10000 record .
    any one have  sql query or any idea.Please help 
    Akhilesh Sahu Sr.Software Developer

    Hi akhilesh,
    Based on your description, you want to Sorting by a specified order that NULL value should be located in the bottom of some columns. If in this scenario, we can try to add a calculated field to convert the values of the field to A, B depend on the specified
    order. Then Sorting the field by A to Z to achieve your requirement. For more details, please refer to the following steps:
    Right-click the dataset to add a calculated field named Order with the expression like below:
    =iiF(Fields!CircleId.Value="","B","A")
    Right-click the report item to open the properties dialog box.
    Click Sorting in the left pane, then add a sorting as below:
    Sort by: [Order]                                                           
    Order: A to Z
    If you have any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Is it possible to boot from a USB 2.0 drive?

    I use CCC to clone my main drive to external drives. I have used these to boot using either Firewire 400 or Firewire 800. Will a USB 2.0 drive also work as a boot drive? Thanks.

  • Can't find Originals and Modified files in finder

    Just upgraded to iPhoto 9 and find that the Original and Modified folders are missing. I can find them when I get file info from a photo in iphoto and they seem to be subfiles of the iphoto app. However in finder, they are not accessible. Am I missin

  • Dodging the wipe order.

    How can I download pics from my iTouch to a PC, Sd-card, anything w/o connecting to the internet? (If I connect to the internet, then my erroneously issued 'wipe' command will take effect; the pics were not backed up onto my iTunes acct apparently).

  • If we run a query,what all happens in background/what are phases of query processesing.?

    Hi Friends, if we run a query,what all happens in background/what are phases of query processesing.? Many thanks Shashikala

  • Non-conforming RAM

    I'm wondering if I can use 2 RAM sticks from a 2010 iMac in a Late 2012 machine - it's easy to try and I might experiment with this just for the heck of it. The only difference in the spec is speed - 1333 MHz  (2010) vs 1600 MHz  (2012) The machine I