External table - bad row - Please help

Hi,
I have one external table which is associated with a LOAN.DAT file.
If some rows are bad means external table is dumping a bad file with
the 'bad row' in .bad file. Is there any way to identify what is the reason for
this or which column caused the row to be bad?
Regards,
Mathew Collins.

Hi Mathew,
Is there any way to identify what is the reason for this or which column caused the row to be bad?
Not that know of. I usually just carefully inspect the row and compare it with the format mask:
I have a reproduceable example, here, this might help:
http://www.dba-oracle.com/art_ext_tabs.htm
Hope this helps. . .
Don Burleson
Oracle Press author

Similar Messages

  • How read the flat data by external table definition. Please help me. Thanks

    ----Following is my code--
    create or replace procedure AGE_UPLOAD_SER_RCD1 is
    check_drop PLS_INTEGER;
    begin
    SELECT COUNT(*) INTO check_drop FROM USER_TABLES WHERE TABLE_NAME='EXT_SERVICES_RECEIVED_UPLOAD';
    IF (check_drop <> 0) THEN
    EXECUTE IMMEDIATE 'DROP Table EXT_SERVICES_RECEIVED_UPLOAD';
    END IF;
    EXECUTE IMMEDIATE 'CREATE Table EXT_SERVICES_RECEIVED_UPLOAD
    ALIEN_NUMBER number(9),
    SOCIAL_SECURITY_NUMBER number(9),
    INTAKE_DATE          date,
    CLOSURE_DATE          date,
    CLOSURE_REASON          varchar(200)
    ORGANIZATION external
    TYPE oracle_loader
    DEFAULT DIRECTORY UPLOAD_STAGE_AREA_AE
    ACCESS parameters
    RECORDS DELIMITED BY ''|''
    BADFILE ''ext_services_received.bad''
    DISCARDFILE ''ext_services_received.dis''
    LOGFILE ''ext_services_received.log''
    SKIP 1
    FIELDS TERMINATED BY '','' OPTIONALLY ENCLOSED BY ''"''
    LOCATION (''AGE_SERVICES_RECEIVED2.TXT'')
    REJECT LIMIT unlimited';
    end AGE_UPLOAD_SER_RCD1;
    --Problem is Unable to read the data-----
    ---Following is the error log ----
    LOG file opened at 07/19/06 15:57:23
    Field Definitions for table EXT_SERVICES_RECEIVED_UPLOAD
    Record format DELIMITED, delimited by |
    Data in file has same endianness as the platform
    Rows with all null fields are accepted
    Fields in Data Source:
    ALIEN_NUMBER CHAR (255)
    Terminated by ","
    Enclosed by """ and """
    Trim whitespace same as SQL Loader
    SOCIAL_SECURITY_NUMBER CHAR (255)
    Terminated by ","
    Enclosed by """ and """
    Trim whitespace same as SQL Loader
    INTAKE_DATE CHAR (255)
    Terminated by ","
    Enclosed by """ and """
    Trim whitespace same as SQL Loader
    CLOSURE_DATE CHAR (255)
    Terminated by ","
    Enclosed by """ and """
    Trim whitespace same as SQL Loader
    CLOSURE_REASON CHAR (255)
    Terminated by ","
    Enclosed by """ and """
    Trim whitespace same as SQL Loader
    KUP-04021: field formatting error for field SOCIAL_SECURITY_NUMBER
    KUP-04023: field start is after end of record
    KUP-04101: record 7 rejected in file /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    error processing column INTAKE_DATE in row 2 for datafile /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    ORA-01843: not a valid month
    error processing column INTAKE_DATE in row 3 for datafile /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    ORA-01843: not a valid month
    error processing column INTAKE_DATE in row 4 for datafile /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    ORA-01843: not a valid month
    error processing column INTAKE_DATE in row 5 for datafile /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    ORA-01843: not a valid month
    error processing column INTAKE_DATE in row 6 for datafile /data/External_Files/Data_Uploads/DB_Area/Adult_Ed/AGE_SERVICES_RECEIVED2.TXT
    ORA-01843: not a valid month

    What does the data look like for INTAKE_DATE field in the data file?

  • My PC computer was wiped (virus) including itunes. How do I transfer the many playlists and music to the new re-installed itunes?? Ipod is synced to old itunes. I have all original music files on external hard drive. Please help?

    My PC computer was wiped (virus) including itunes. How do I transfer the many playlists and music on my ipod to the new re-installed itunes?? Ipod is synced to old itunes. I have all original music files on external hard drive. Please help?
    New itunes is trying to wipe the ipod. But have many many playlists (many hours making) which I want to save. Any help would be appreciated.

    If you want to just extract the playlists from your iPod, plug it in iTunes.  When it appears under devices, right->click on it and choose Export Playlists.  Save them to a location such as your desktop and them import them into your library once you have copied and imported all of your music back into it.
    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Macbook air adapter heats up really bad ! please help

    Hello Folks !!
    This is Jan and i purchased macbook air 11 inch 64 gb ultrathin laptop 2 months back. i use this laptop for watching youtube videos or occasional skype chat with family and friends and each day i dont use my laptop for more than 4 hours.
    Yesterday i was watching youtube video and after 2 hrs, the adaptor got so hot and i was afraid and pulled power and switched off laptop.
    Are thare any macbook air adaptor knows issues and why my macbook air adaptor heats up really bad ?
    Please help me resolve my issue with macbook air adaptor.
    Please help.
    Thanks
    Jan

    The power adaptor will always get a little warm or even hot during use.
    How hot did it get? Was it smoking, melting, or discoloring?
    If not, then that little bit of heat is usual and you shouldn't worry about it too much.
    Hope this helps,
    NWB1

  • PROBLEM WITH NEW ROW  --- PLEASE HELP

    Hello,
    I've had it with the framework. It's been 20 hours and counting that I am trying to insert/validate a new record.
    Things just don't work as advertised.
    Here's the situation:
    I have an entity object with various validation rules in the validate() method.
    Then I have a simple JSP page to insert new records.
    At submit of button, I follow the framework's default
    create new row and fill it up, with the difference
    that i need to validate the row as soon as I fill it up
    with data from the http request:
    <jbo:OnEvent name="Create">
    <jbo:Row id="newrow" datasource="ds" action="CreateInRange" >
    <% try { %>
    <jbo:SetAttribute dataitem="*" />
    <%
    newrow.validate(); //******* NOTICE HERE THAT I VALIDATE
    } catch (JboException ex) {
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    </jbo:OnEvent>
    Unexpected behavior 1: If the validation fails,
    newrow DOES NOT GET REMOVED!!!! I know this
    since when I view data thru a data table component,
    the row is there WITH THE ERROR INFORMATION set!!.
    If I do a commit transaction, then the erroneous information ENDS UP IN THE DATABASE!!!!!
    Unexpected behavior 2: If I do a rollback, every
    call to subsequent pages results in a jsp error:
    java.lang.ClassCastException: oracle.jbo.html.jsp.datatags.OnEventTag
    PLEASE HELP.
    Chris Lambrou

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • External Table Skip Row

    I've created external table, but how do I get the external table to skip the header and footer?
    CREATE TABLE "KAS_EXT"
    CUSTOMERID VARCHAR2(9),
    CANVASSID VARCHAR2(9),
    REPID VARCHAR2(9)
    ORGANIZATION external
    TYPE oracle_loader
    DEFAULT DIRECTORY SYS_SQLLDR_XT_TMPDIR_00000
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE CHARACTERSET WE8MSWIN1252
    BADFILE 'kaslist_ext_devt_water.bad'
    LOGFILE 'kaslist_ext_devt_water.log_xt'
    READSIZE 1048576
    FIELDS TERMINATED BY "," LDRTRIM
    MISSING FIELD VALUES ARE NULL
    SKIP 1 <<<<<<<<<<<<<<< here???
    REJECT ROWS WITH ALL NULL FIELDS
    CUSTOMERID CHAR(255)
    TERMINATED BY ",",
    CANVASSID CHAR(255)
    TERMINATED BY ",",
    REPID CHAR(255)
    TERMINATED BY ","
    location
    'kas.csv'
    )REJECT LIMIT UNLIMITED

    I don't know of any way to make it automatically skip footers. Hopefully, the footer doesn't match your data structure, so that it couldn't get loaded as a record, then it would just go to your bad file.

  • External Table Problem - Need Urgent Help

    Hi All,
    I want to load flat file data to oracle database.
    I have used external table feautre for loading data.
    My data is like
    "F","1","1","KIAWAH ISLAND rated off the pace, rallied to gain command on the far turn, then"
    Now my problem is that fields are terminated with comma but there is a comma inbetween field values. please see last field value (i.e ", then" that is value of third field).
    Now what access parameter should specify to create external table that maps to this type of data. I have used fields terminated by "," and Enclosed by '"' and '"".
    but it still gives me error.
    So, Please help urgently

    Could you post your controlfile?

  • Problem with front row, please help!

    I got a year old MBP 15" which I updated to leopard, and it works generally fine, except for the fact that when using front row and leaving it playing music for about 5 minutes idle, it freezes, goes to blank screen, but still plays the playlist it was set on, but when I use the remote control, or press keys, it keeps frozen, the only way to quit is to force power off.
    Please help me, as I really like Front Row and my MBP is my hub for playing music in reunions.
    Thanks in advance

    I have (hopefully) found a solution to my part of this problem. I was getting the ClassCastExceptions on any page with a <jbo:row> tag after doing a failed DML action. I have tested this with the delete event. (btw, I am using jdev9.0.3.3 w/ BC4J/JSP) Before what I was doing was this:
    <% try { %>
    <jbo:Row id="delrow" datasource="ds" rowkeyparam="jboRowKey" action="Delete" />
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    If I removed the try/catch block everything worked fine. Unfortunatlely, I need to try/catch block here. To work around the problem I changed the code to this:
    <% Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    <%
    rowDelete.remove();
    %>
    <% } catch (JboException jboEx) { %>
    do something
    <% } catch (Exception ex) { %>
    uh-oh, this is bad
    <% } %>
    The second bit of code does the same thing (but it doesn't use a bean like I think <jbo:Row> does) and it doesn't cause the ClassCastError on subsequent errors.
    I really hope this helps someone else because it took me forever to get a workaround!
    ~Rob Lundeen

  • BDC - table control - experts please help

    Hi experts,
    Please help. I am in need of your help.
    I am working with BDC and I have a table control in one of the screen. Table control has a check box in the first column. While recording how I entered the data is : I select the check box in a row, enter two values in next two columns of that row and then hit enter then the other columns in that row turn from grey to white (initially these columns are greyed out).
    NOw in BDC when I run my session in foreground, I am able to check(select) the check box and enter the values in next two columns and then I have a Enter OKCODE. But when I hit enter it is not able to recognize the row and its unable to turn the greyed out columns in that particular row to white.
    Is there a way to specify in my program that I am hitting enter in one particular row.
    Please help. Let me know if something is not clear. Very urgent . Pleasee respond. Thanks

    Hi Rich,
    Thanks for the replies. I will try that. I got one more doubt. While manually creating the recipes using C201, there is a screen Recipe header. When I record this transaction, I see a different screen for the Recipe header. Fro example the screen numbers are like 4210(manual) and 4211(recording).
    But my problem is there are two fields which are missing in the screen which I am getting while recording C201. These two fields are present on the screen for manual creation. I need to enter those two fields while I record. But how can I do this.
    Please help.

  • Table Editing Problems--- Please Help!!!

    I have implemented a table model that adds an extra blank row . Now when
    i enter some value into the first row and press enter i find that the value is lost. (the row goes blank and a new row is not added).the table model stores the new value though.
    The table has 1 column and its header is set to null
    here is the code
    class ReportTableModel extends AbstractTableModel
         Object[][] data;
    Vector rows ;
         public ReportTableModel(Vector rows) {
         this.rows = rows;
         setTableData();
         public int getColumnCount() {
                   return 1;
         public int getRowCount() {
    return rows.size()+1;
         public String getColumnName(int col) {
                   return null;
         public boolean isCellEditable(int row,int col)
                   return true;
         public Object getValueAt(int row, int col) {
              if (row == 0)
                   return "";
              return data[row][col];
         public Class getColumnClass(int col) {
                   return "".getClass();
         public void setValueAt(Object value, int row, int col) {
                   data[row][col] = value.toString();
                   rows.add(value.toString());
                   setTableData();
         public void setTableData() {
    data = new Object[rows.size()+1][1];
         for (int i=0,k=1; i < rows.size(); k++,i++) {
                   data[k][0] = rows.get(i).toString();
                   this.fireTableDataChanged();
    Please help!!!!
    Thank you,
    Phani Kanuri

    Do you add the new table to the scrollpane? Generally, it is wise to use table in constructor of JScrollPane.
    JScrollPane jsp = new JScollPane(myTable);
    // assuming myTable has been instantiated already
    Cheers
    DB

  • Pivot table problem. Please help me create this report

    Hi friends..I'm new to OBIEE. We can create the grand total column in pivot table. I need grand total as well as Grand average. How can I create a new column in pivot table that is same as grand total but calculates average.
    My table structure is like this.
    Facility......Date........totaldays
    A..........01/01/08......210
    B..........01/01/08......215
    C..........01/01/08......917
    A..........02/01/08......211
    B..........02/01/08......211
    C..........02/01/08......911
    A..........03/01/08......210
    B..........03/01/08......215
    C..........03/01/08......917
    I need the report like this..
    Facility.....01/01/08......02/01/08....03/01/08...Total....AVG
    A...............210.............211............210.....631......210.3
    B...............215.............211............215.....641.....213.6
    C...............917.............911............917.....2745....915
    For this report..I created pivot table but I'm not able to calculate the average..
    Can you please help..I'm new to OBIEE...
    Thanks in advance

    Please change your username....
    Here is what you need to do...
    1) In the Pivot Table View, click on the Measures column and select New Calculated Item.
    2) In the pop-up window complete as follows:
    Name: type "Total Average"
    Function: Select "Average" from the drop-down window.
    Click on the values in the right pane that you wish OBI to calculate the average for.
    3) Click "OK."
    You now have another column that is the average of the values in each row.

  • How can I call a ABAP proxy class from BADI? PLease help

    hi Experts,
        I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
    Please help.
    Thanks
    Gopal

    Hi,
       You can call a method of a class from BADI. Here are the steps.
       1) In the BADI implementation create a object for the proxy class.
       2) Call the Execute_Synchronous method.
        You can define a BADI by using SE18 and you can implement it by using SE19.
    Sample code...
    ================================================
      METHOD ZIF_EX_VBADI~CONVERTUPPER.
      DATA: OBJ TYPE REF TO ZTESTCLASS.
      DATA: IT_DATA  TYPE ZIN_MT,
                IT_RES   TYPE ZOUT_MT,
                SEXCEPTION TYPE REF TO CX_AI_SYSTEM_FAULT.
      TRY.
          CREATE OBJECT OBJ
             EXPORTING
                 LOGICAL_PORT_NAME = 'TESTPORT'.
      CATCH CX_AI_SYSTEM_FAULT INTO SEXCEPTION.
      ENDTRY.
    ENDMETHOD.
    ================================================
    Thanks,
    Vivek LR

  • HT5958 We are 4 min in to editing a video on final cut pro.  now my computer is freezing up.  I have heard that this is a glitch from downloading. (beyond frustrated)  is this from working from 2 external hard drives?  PLEASE HELP! =)

    PLEASE HELP. =) 
    we are about 4 minutes into editing a video for the first time on final cut pro x 10.1.  everything was going very smoothly, but then it started freezing up.  I had to do a hard reset and took it into the computer store that actually installed final cut for us.  they suggested that our mac actually is not capable of keeping up with final cut. (I FIND THIS HARD TO BELIEVE!!)  We work on an IMAC 2.66 ghz intel core 2 duo.  8 gb 1067 mhz ddr3. software os x 10.9.1 (hopefully that info will help for your suggestions)  Because we have soooooooooooo many hours of high def video, we are working off of two external hard drives.... is this a problem?? or do we really need to upgrade our computer?????

    Like Russ said, check Activity Monitor and see what else is running and turn off any Applications that aren't needed.
    Turn off wi-fi or disconnect the wire that goes to the Internet
    Turn off Background Rendering (if you see an orange line on the top of the time line that moves along and gets shorter while you're not doing anything that is a good sign that Background Rendering is running.
    I haven't used 10.1 yest but on the previous version there was a small circle approximately in the middle of the screen, about 1/2-inch or 1 cm in diameter, and it would have a number inside. The number is the percent complete of what is hapening. When it is Rendering the percentage will be shown.
    Basically, you probably need to free up resources.
    For what it is worth, my previous Mac Pro was a 1,1 2.66 machine, also with 8GB of, I think, 667 memory, and it would process FCPX 10.0.9 okay. It did have an upgraded video card, though.

  • How to call a ABAP proxy class from a BADI? Please help!

    hi Experts,
        I have a scenario where I have to call a ABAP proxy class from a BADI. How can I do this? Does anybody has sample code for the same?
    Please help.
    Thanks
    Gopal

    Hi Gopal,
    Check this out
    DATA: ref_obj    TYPE REF TO zmfg_production_ord.----> BADI
    * Instantiate the proxy class
        CREATE OBJECT ref_obj.
        TRY.
            CALL METHOD ref_obj->execute_asynchronous
              EXPORTING
                output = it_output.     "Output Structure
            COMMIT WORK.
          CATCH cx_ai_system_fault INTO ref_sysexception.
        ENDTRY.
        IF  ref_sysexception IS INITIAL.
          WRITE : / 'Error Message'.
        ENDIF.
    Edited by: Raj on May 28, 2008 4:52 PM

  • How to have the check box fields in the table ...Please help me out.

    Hi
    can any one give me code save the checkbox field to save in the table.
    I have displayed the checkboxes using the loops from the table but when i am clicking the checkboxes and pressing the button save its not saving in the database table.
    please help me out. Its urgent .
    Thank you very much suneetha

    DOnt duplicate the thread...Reply to the below thread..
    Re: In the loop to display checkboxes.
    Raja T

Maybe you are looking for

  • While opening images in PSE 8 error message is coming up

    I am receiving a "maximum size exceeded" message on many of my jpegs.  I am running Elements 8 under Windows 7 64 bit.  In a previou s configuration I was executing Elements 6 under a Windows XP OS.  In that configuration Adobe issued a fix in your k

  • Locks and/or slow processing

    Hello, Thanks in advance!! Whenever, our system receives a flood of events, we try to update the database by first locking a certain row using "select for update". However, the system seems to lock up (I think it is very slow in processing) for a lon

  • How do I get the computer to automatically eject a drive before it enters Sleep?"

    I have an external eSATA drive connected via PCI Express card to my Mac Pro.  When I wake the computer, I get a complaint about not correctly ejecting the disk.  How can I get the computer to eject the drive before entering Sleep?  There are two part

  • How to pass parameters to cursor at run time - in a  Pro*C

    Can someone help me with this? I want to pass parameters to a cursor used within a Pro*C code. Cursor is declared below: EXEC SQL DECLARE CURSOR acct_disp_csr(prov_id number) is SELECT recoup_ma_ch_ind, recoup_acct_type, recoup_create_date, recoup_cr

  • I can't change the text formatting with slideshow captions.

    They revert back to a color and size other than what I specified. I have tried doing paragraph styles, charecter styles, unchecking the edit together. Nothing helps.