URGENT:how to get the error table populated in ODI

Hello all,
I am working on an interface of ODI where mapping is from a XML file to the database tables. I want, when there is any bad data (having length size greater than the target table's column length or data type mismatch) the bad data should get rejected or separated.
I am using LKM, CKM, and IKM knowledge modules, but the erroneous record is not getting populated in even in the error table.
when I try to insert lets say 4 records and 2nd record is erroneous then it is only inserting the 1st record. i want that the erroneous record should get inserted in the error table.
Please suggest, if anybody is having any related information to get this done. That would be really helpful.
Thanks in advance!

Hello Phil,
Thanks for your update.
The option which you have mentioned having cloumn as char 4000, I can not do that as my target tables are seeded tables.
I have also tried to get the data atleast in C$ tables having their length as varchar 4000. but it is not allowing to insert in C$ tables also.
In my case I am getting data for ex: date_of_birth in VARCHAR datatype from the source XML and I have converted it ot DATE while mapping it to target column having DATE as the datatype.
what if the DATE in xml source is invalid? its giving me the error while execution "Invalid datetime format". how would I identify that this error is for a particular record. If I can get this erroneous record atleast in C$ table I can find a work around for this correction then.
I hope you have solution for this problem :)
Thanks.

Similar Messages

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • How to get the plsql table data into output cursor

    Hi,
    Could anybody please help me.
    Below is an example of the scenario..
    CREATE OR REPLACE PACKAGE chck IS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
    TYPE get_rec is record (ename varchar2(20),
    eno number(12));
    TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
    emp_tab t_recs;
    END chck;
    CREATE OR REPLACE PACKAGE BODY chck AS
    PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
    is
    BEGIN
    select ename, eno
    bulk collect into emp_tab
    from emp;
    open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
    END;
    END chck;
    the above package is giving me an error:
    LINE/COL ERROR
    10/29 PL/SQL: SQL Statement ignored
    10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
    item
    let me know what needs to be changed
    Thanks
    Manju

    manjukn wrote:
    once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
    It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
    It is an extremely primitive structure - and should never be confused as being just like a table.
    Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it.

  • Urgent:How to get the Sqltext for Oracle Sumbitted Jobs in 10g

    Dear All,
    Could you help me out in sorting the below problem.
    I use to get the current running sql's with following below query in 9i.
    SELECT A.SID,B.HASH_VALUE, OSUSER, USERNAME, SQL_TEXT
    FROM V$SESSION A, V$SQLTEXT B
    WHERE B.HASH_VALUE = A.SQL_HASH_VALUE
    AND USERNAME LIKE upper('%SCHEMA%')
    ORDER BY B.HASH_VALUE, B.PIECE;
    This is will work in 10g also for user-triggered sqls,stored procedures etc.
    But when oracle submits job i'm not able find which qurery is running.
    Seems For oracle jobs in 10g for V$session contain column SQL_HASH_VALUE as Zero and hence i'm not able find the any sql's running.
    Could you please any of you help me out how to get the Sqltext for Orcle submited Jobs in 10g.
    Please revert asap as this is very urgent for me.
    Thanks in Advance
    Anil.

    Have you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
    bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
    Thanks,
    Hussein

  • How to find the error table

    If an error occured in the program while running, in which table  this error  is stored and how to get the message no.

    Hi,
    Doubleclick the error message and you get the message id and message number, then use transaction SE91 (or look in table T100T).
    Regards,
    John.

  • Urgent:::how to get the employee hierarchy

    hi all.
    let me know how to get the employee hierarchy in HR organizational management.
    like when we give emp id it shows developer name---superior( team lead name)-superior(project lead name)---
    points will be rewarded for valuable answer.

    Hi,
    1) You can use the relation '002' in the table HRP1001, between the position of developer (objid) and get the position of team lead (sobid field). With the position of the team lead got in SOBID field... with the relation '008' get the person name.
    2) You can use the transaction PPOM_OLD to view the reporting structure...
    Regards,
    Meera

  • Urgent :how to get the o/p from report2.5 into excel

    hi all
    anybody can tell me how to get the report o/p in to excel format.
    please help me urgent. any example send me on [email protected]
    Regards
    onkar

    Have you tried to put this question in the report forum?
    Fabrizio

  • How to get the error in TOAD?

    Hello All,
    I am using the oralce 9i and toad 9.0.1 version. When I am compileing the procedure, functions in the toad it is giving the result as "Warning: compiled but with compilation errors". But is there any way to get the error message like the sql*Plus.
    Thanks,
    SUN

    I don't know TOAD but think you can query the USER_ERRORS table:
    SQL> create  procedure a
      2  /
    Warning: Procedure created with compilation errors.
    SQL> select * from user_errors;
    NAME                           TYPE           SEQUENCE       LINE   POSITION
    TEXT
    ATTRIBUTE MESSAGE_NUMBER
    A                              PROCEDURE             1          1         11
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
       ( ; is with authid as cluster compress order using compiled
       wrapped external deterministic parallel_enable pipelined
    The symbol ";" was substituted for "end-of-file" to continue.
    ERROR                103Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/23/la-forza-del-foglio-di-calcolo-in-una-query-la-clausola-model/]

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • How to find the error message populating for infotype 2001 iN pa30

    Hi ,
    I got a requirement that one of our end user a a error message is populating when he tries to enter the data in 2001 absences infotype.
    I check the documents ...it is written as a there is long back they modified the original T-code of 2001(report or userexit not sure) to allow only HR Department people , no one can enter the details apart from HR ,no-one else should be able to do that!!
    Now i need to find where the error message is getting .............i dont know what is the best approach,
    i debugged it(before savgin) but its too long to find......I put the break points for the user-exits available for the infotype(Total i found 16 Package PTIM) ......no user-exit is triggerring..i searching from morning....
    The main problem is  it is working fine for me.I am not getting error message...so unable to catch
    Please help me how to search...or need to search with 'AUTH ' field? if so in how many programs?
    or need to search using the 'MESSAGE' i just have the screen shot of the message..with the content how could i found that ??
    waiting for your valuable inputs....
    regards
    sas

    Hi Gautam,
    Thanks for reverting back, but my problem is i am not getting error message!!
    enduser is getting that!!
    Rgars
    sas

  • How to get the errors thrown during SwingWorkes-doInBackground-method

    Hi,
    I got an annoying problem.
    I use a SwingWorker to do some operations in background...
    Now it could be, that some of those operations throw an exception...
    but the SwingWorker do not throw those...
    The only exception i get is a final Exception cause of an object who
    wants to display the result of the background activity...
    In detail : a method done in background throws an index out of bounds exception
    but how i can get this error?
    I try to surround the swing worker object with a try and catch for general exceptions but
    this don't work.
    regards
    Olek

    There are two things you can do. First, you might wrap the code in doInBackground() in try/catch. I'd discourage this since it will make your code more complicated. Secondly, if an exception occurs, the SwingWorker will switch its state to 'done'. If you invoke the get() method (even if you're returning null in doInBackground()), an ExecutionException will be risen. Using Exception#getCause(), you will get the original exception that occured, in your case the ArrayIndexOutOfBoundsException.

  • How to get the error message which causes Synonym Invalid?

    Hi,
    I created a synonym in USER_B for a table in USER_A.
    I have given all priveleges to USER_B from USER_A.
    I created a package. In that I am using this synonym. Its working fine.
    Today I have seen that.. the synonym is showing as invalid.
    Even I recompiled the synonym. But its still showing as Invalid in PL/SQL developer.
    Here I would like to see the error message which cause the synonym invalid.
    How can I see the error message.?
    Thank you,
    Regards,
    Gowtham Sen.

    Makes perfect sense. Oracle automatically attempts to revalidate objects when you try to use them.
    SQL> create table t (
      2  col1 NUMBER);
    SQL> create or replace procedure p is
      2   x POSITIVE;
      3  begin
      4    SELECT COUNT(*)
      5    INTO x
      6    FROM t;
      7  end p;
      8  /
    Procedure created.
    SQL> drop table t purge;
    Table dropped.
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    INVALID
    SQL> create table t (
      2  col1 NUMBER);
    Table created.
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    INVALID
    SQL> exec p
    BEGIN p; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "UWCLASS.P", line 4
    ORA-06512: at line 1
    SQL> select status
      2  from user_objects
      3  where object_name = 'P';
    STATUS
    VALID
    SQL> Even when the procedure has a problem ... the revalidation takes place.

  • How to get the Database table behind condition records

    Hello All
    In transaction VK13, after giving condition type, I can select sales document.
    For a given Sales Document number, there are several conditions.
    How can i extract all the conditions for a given sales document?
    I am coding a report for this. In which database table can i get the condition between sales document number & different conditions attached to it?
    On the screen, i can see that the fields are from the structure KOMG. What is the corresponding table?
    Thanks
    Chandra Sekhar

    Hi,
    corersponding tables will be konp , a771,a511,a564
    here i am providing you sample query related to it
    { -Get the Territory list price YPR0
        SELECT vkorgau
               zzland1_ag
               zzmatgrade
               a511~kfrst
               datbi
               datab
               kbetr
          INTO TABLE it_list1
          FROM a511
          JOIN konp
            ON a511knumh = konpknumh
         WHERE a511~kappl = 'V'
           AND a511~kschl = 'YPR0'
           AND vkorgau = '5000'
           AND zzland1_ag = v_land1
           AND loevm_ko <> 'X'.}
    Thanks & Regards,
    Sateesh.
    Edited by: sateesh kumar on Nov 12, 2009 12:59 PM

  • How to get the error raised in LoginModule into the error.jsp page?

    Hi,
    I would like to get the Exception message raised in a LoginModule and display it "friendly" into my error.jsp page.
    How to do that?
    Thanks.
    Stephane

    I have posted this question a few times. These forums are useless for all but the simplest of problems.
    Here is what you can do, of course it is unsupported, and may or may not break with a future release - all I can say is that it works in 10.1.3
    In your loginmodule login() method, add the JAZNContextCallback to your callbacks array, then after the callbacks are handled you can access the request in the following way:
    HttpServletRequest request = (HttpServletRequest) ((JAZNContextCallback)callbacks[2]).getContextObject(JAZNContextCallback.HTTP_SERVLET_REQUEST, null);
    You can then add the error message to the request and your jsp or whatever will be able to access it.
    By the way, JAZNContextCallback is contained in the jazncore.jar file.

  • Urgent: How to get the names of all menu items

    I have a .mmb menu module.
    There are many menus and submenus in it.
    Now I want to get the names of all menu items available in the module using sql or pl/sql.
    Actually I need to store these names in another table as it is. That is why I want get them programmatically.
    Any solution please.... bit urgent
    Thanks

    When I needed the same, I wrote my own application using
    Forms API (Windows,Forms 6.0,6i). Perhaps it will help
    you.
    Let me know your e-mail and I'll send it.

Maybe you are looking for