Sqlloader:only 1st when clause works for comma separated data file

LOAD DATA
INFILE 'XXMI_SUPPLIER_DATA.dat'
REPLACE
INTO TABLE APPS.XXMI_AP_SUPPLIERS_STG
when interface_record_type = '01'
Fields terminated by "," Optionally enclosed by '"'
TRAILING NULLCOLS
and
INTO TABLE APPS.XXMI_AP_SUPPLIER_SITES_STG
when interface_record_type = '02'
Fields terminated by "," Optionally enclosed by '"'
TRAILING NULLCOLS
always getting the error for second when clause:
4 Rows not loaded because all WHEN clauses were failed.
pls any one can throw some light on this?

What's Oracle version.
What's your datafile looks like. Post a few sample line here.
when interface_record_type = '01'You didn't define interface_record_type in your when clause.
Sample,
INTO TABLE dept
   WHEN recid = 1
   (recid  FILLER INTEGER EXTERNAL TERMINATED BY WHITESPACE,
    deptno INTEGER EXTERNAL TERMINATED BY WHITESPACE,
    dname  CHAR TERMINATED BY WHITESPACE) check Oracle doc,
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1004788

Similar Messages

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Document library open in client application not working for img,pdf,txt files

    In an office 365 sharepoint site i have enabled open in client applicartion for document library but it is not working for image/txt/pdf files for word and excel files it is working fine. I have even turned on the feature open document in client application
    by default from site collection features also but there is no change.
    Please advice.
    Regards,
    Chaitanya

    Hi Chaitanya,
    The feature is currently designed to be used with HTTPS, and will not work as expected with the HTTP connection available on Office 365 for professionals and
    small businesses sites.
    To take advantage of this update, do the following steps:
    Wait for the update to the SharePoint Online service, which is in progress now.
    Upgrade Adobe Reader to the version 10.1.2 client.
    Add your SharePoint Online root URL/domain to the Trusted Sites security zone in Internet Explorer1 (e.g., 
    https://contoso.sharepoint.com).
    Check the Keep me signed in box when you log in to a SharePoint Online site.
    This
    SharePoint Online update is currently
    being rolled out worldwide along with several other new features.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Custom Document for Comma Separated Values in a JTextField

    Hi,
    I tried to create a custom structured Document implementation for comma separated values (on one line) in a JTextField:
    I want to have one LeafElement for each value (to store as an attribute the Object associated with this value). So, if I plug a DocumentListener to the JTextField, I can easily see which value(s) have been added/removed (see ElementChange).
    I used the PlainDocument implementation as a starting point and replaced the logic related to the '\n' character by the ',' (see #insertUpdate).
    Then I realized that the View must be customized too. So I created a View with a custom #paint method to draw each LeafElement on the same line.
    But, now, I try to fix the ElementChange returned by the #insertUpdate and #removeUpdate methods.
    Indeed, I played with a JTextArea with two lines "Bart\nisa" and plugged a debugging DocumentListener.
    And the event I get when I type 'L' before "isa" is really strange:
    - Two elements removed,
    - Two elements added.
    In the PlainDocument#insertUpdate, the code updates the 'offset' but I don't understand the logic behind.
    Could you explain me why I got this result?
    Could you give me an hint?
    Best Regards,
    El Barto.

    When you say the offset gets updated, I assume you're talking about this bit:
         int offset = chng.getOffset();
         int length = chng.getLength();
         if (offset > 0) {
           offset -= 1;
           length += 1;
         } The result is that, if a character is added at the very beginning or end of a line, the edit gets treated as a multi-line edit, which means the LeafElements on either side of the edit get removed and reconstructed. I discovered this behavior a few years ago, and I never have figured out what purpose it serves. I think you'll just have to try overriding the method to eliminate that behavior, and see what happens.

  • Look Up For Comma Separated Strings

    Hi,
    How to look up for comma separated string from livecycle forms manager ??
    Plz gimme an idea on this.
    Raghava Kumar V.S.S.

    Hi
    My point is that the more detailed you ask your question, the more likely you are to get an answer.
    Those of us who monitor these newsgroups also appreciate you doing as much of your own research as possible, before asking us for help - we're more likely to spend our own (personal and valuable) time helping you, if we know that you've spent your own time doing research, and you've still not been able to solve the problem.
    I look forward to your next question :-)
    Howard

  • ODI 11g 11.1.1.7 with Win64 bit OS : Starange problem : Right click does not work for Create new data server in Topology.

    ODI 11g 11.1.1.7 with Win64 bit OS : Strange problem : Right click does not work for Create new data server in Topology.
    On right click nothing happens at all. I have  reinstall the ODI multiple times with right installer. issue persist.
    Please help.

    Hi,
    Did you use the generic installer or the win32 one ? You should use the former with Win64.
    You can also check that your version of Java is supported in the certification matrix.
    Regards,
    JeromeFr

  • Whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    whenever i try to download a rather large file i continue to get the "could not read source file" error. Tried new profile, uninstalling and looking for the compreg.dat file to delete nothing is working. Please help

    Did you reinstall CS3 after CC?
    For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
    And you shouldn't need to save as IDML after opening the .inx in CC.

  • Need to Convert Comma separated data in a column into individual rows from

    Hi,
    I need to Convert Comma separated data in a column into individual rows from a table.
    Eg: JOB1 SMITH,ALLEN,WARD,JONES
    OUTPUT required ;-
    JOB1 SMITH
    JOB1 ALLEN
    JOB1 WARD
    JOB1 JONES
    Got a solution using Oracle provided regexp_substr function, which comes handy for this scenario.
    But I need to use a database independent solution
    Thanks in advance for your valuable inputs.
    George

    Go for ETL solution. There are couple of ways to implement.
    If helps mark

  • Comma separated Excel file FCC?

    Hi Experts,
    I have an excel file like below (I have just mentioned the row n column to give an idea):
    first name(A1), last name(B1), street (C1) city(D1), state(E1)
    John (A2), Smith(B2), MacArthur(C2), Dallas(D2), TX(E2)
    Mike(A3), Dale(B3), Main St(C3), Austin(D3), TX(E3)
    Kevin(A4), Costner(B4), 2nd Steert(C4), Houston(D4), TX(E4)
    Can I tranform this into xml out-of-the box using XI 3.0 file adapter file content conversion? If I have to use the module, is there as stadard module available or should have to build from scratch?
    If I open the excel file in notepad, it opens as comma separated text file
    first name,last name, street,city,state
    John,Smith,MacArthur,Dallas,TX
    Mike,Dale,Main St,Austin,TX
    Kevin,Costner,2nd Steert,Houston,TX
    How do I do FCC for the above CSV file? I mean I have one header with the field names and remaings rows as record sets.

    > I have an excel file like below (I have just mentioned the row n column to give an idea):
    >
    PI Standard Adapter will not support Execl files.,there is no standard module available, you have to develop adapter module to process EXCEL files.
    >
    > Can I tranform this into xml out-of-the box using XI 3.0 file adapter file content conversion? If I have to use the module, is there as stadard module available or should have to build from scratch?
    >  If I open the excel file in notepad, it opens as comma separated text file
    >
    If you have comma separated values in text file then you can use file content conversion to convert CSV file in to XML,standard adapter will support this.
    > How do I do FCC for the above CSV file? I mean I have one header with the field names and remaings rows as record sets.
    search in sdn , many blogs available on the same  ,converting CSV to XML it is very easy.
    Regards,
    Raj

  • Comma separated data to array

    I am looking for a method to translate a string with comma separated data into an array or vector.

    Hello rolivawdaneel, I hope this help you, this takes the string a returns a vector.
    import java.util.StringTokenizer;
    import java.util.Vector;
    public class stringConverter {
        public static Vector toVector( String s ) {
            Vector result = new Vector();
            StringTokenizer st = new StringTokenizer( s, "," );
            while( st.hasMoreTokens() ) {
                String aTokenizedString = st.nextToken();
                result.addElement( aTokenizedString );
            return result;
    }

  • SQL Loader / WHEN clause / swich off? / bloated log files

    Hallo everyone,
    I am loading data from very large source files using SQL-Loader. This all works fine.
    However, now, using the WHEN clause (in the control file), I would like to load only a very restricted sub-set of the main data. This also works fine ...
    WHEN ARTICLECODE != '000000000000006769'
    However, the log file becomes completely bloated with messages telling me of each record which has failed the WHEN clause ...
    Record 55078: Discarded - failed all WHEN clauses.
    This is becoming a problem because it slows down the process and creates bloated log files which are eating up my disk-space.
    There must be a simple command to allow me to switch off thiese messages but, although I have googled on it, I haven't managed to find it.
    Any ideas on this one? I'm sure it's simple.
    Regards and many thanks,
    Alan Searle

    Try to add key SILENT=DISCARDS to sqlldr command
    Silent means - Suppress messages during run (header,feedback,errors,discards,partitions)

  • Expdp not working for a large db file

    Hello,
    I tried an export using expdp in oracle 10g express edition. It was working perfectly until when the db size reached 2.1 gb. I got the following error message:
    ---------------- Start of error message ----------------
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Starting "SERVICE_2_8"."SYS_EXPORT_SCHEMA_05": service_2_8/******** LOGFILE=3_export.log DIRECTORY=db_pump DUMPFILE=service_2_8.dmp CONTENT=all
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_METADATA.FETCH_XML_CLOB []
    ORA-01116: error in opening database file 5
    ORA-01110: data file 5: '/usr/lib/oracle/xe/oradata/service_3_0.dbf'
    ORA-27041: unable to open file
    Linux Error: 13: Permission denied
    Additional information: 3
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6235
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x3b3ce18c 14916 package body SYS.KUPW$WORKER
    0x3b3ce18c 6300 package body SYS.KUPW$WORKER
    0x3b3ce18c 9120 package body SYS.KUPW$WORKER
    0x3b3ce18c 1880 package body SYS.KUPW$WORKER
    0x3b3ce18c 6861 package body SYS.KUPW$WORKER
    0x3b3ce18c 1262 package body SYS.KUPW$WORKER
    0x3b0f9758 2 anonymous block
    Job "SERVICE_2_8"."SYS_EXPORT_SCHEMA_05" stopped due to fatal error at 03:04:34
    ---------------- End of error message ----------------
    Selinux was disabled completely and I have put the permission of 0777 to the appropriate datafile.
    Still, it is not working.
    Can you please tell me how to solve this problem or do you have any ideas or suggestions regarding this?

    Hello mgogala,
    This link is about the 4gb user limitation on Oracle
    Express Edition total user data files.
    http://download.oracle.com/docs/cd/B25329_01/doc/insta
    ll.102/b25144/toc.htm under 3.3 Oracle Database XE
    Server User Data Limitations
    But it does not say anything about the 2gb file size
    limitation.I read it somewhere and took it on the face value long time ago. I don't use XE so I am not going to spend the rest of my day looking for an obscure note where I saw it. You can experiment and check whether this holds water or not, you can ask the question on Metalink or you can ask the question on TormentTom.oracle.com.

  • Comma Separated Values files ?!!

    Is there special classes for dealing with CSV (comma separated values) to use a text file just like a database ??
    thanks in advance

    sorry, it just sounds like a strange thing to do. Normally, you would not use CSV for persistent data storage with a High Level Language. In your design, if you wanted to refer to a particular record, you get into all sorts of problems. You could keep a note of where each record is, like what line number its on, but then you would need some way of modifying this note when you add records. Also, you would have to be sure that no-one is accessing the file outside of the program as then things will not be where the program expects them to be. You could refer to each record using some identifier, but then if you are going to start using all of this, then you may as well go the database route. If you are new to java, it will probably help you learn. I just don't envisage you ever having to use the type of design you are talking of in practice. The closest thing that you ever might use it for is if you had a plain text configuration or parameter file for a program.

  • Setups for Directory where data files sit, in Inbound Transaction.

    Hi,
    My customer is implementing Inbound Po transaction using e-commerce gateway for Order Import in R12.
    Could you let me know what setups i need to ask DBA's for creating inbound directory.
    I just found one required setup online.
    1) DBA's must define the UTL_FILE_DIR parameter in the INIT.ORA file.
    Thanks.

    I can see why no consensus was reached.  I've now looked at that link, where some recommend a place in /usr, but the FSH info that I found says:
    /usr is the second major section of the filesystem. /usr is shareable, read-only data
    So that doesn't seem right.
    Others recommend /var, but the FSH info says:
    /var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files.
    Nope, not there either.
    Final suggestion there is /home.  The files don't need to belong to a particular user, as set forth previously, and the FHS helps with
    /home is a fairly standard concept, but it is clearly a site-specific filesystem. The setup will differ from host to host. Therefore, no program should rely on this location.
    For an OS that serves gazillions of files to as many users, it just strikes me as odd that there isn't a standard here.  That being said, individuality is often a good thing.
    Thank you for your suggestions, both of which make a lot of sense.  I am leaning toward /home/share.

  • Common Practice For Storing Application Data Files

    During my application development targeting for XP and Linux time, I will store my application data files (Files where user may create, modify, rename, delete...) same path as my application directory. For instance, if my application is installed in :-
    C:\Program Files\MyApp\MyApp.jar
    All my application data files will be located in
    C:\Program Files\MyApp\Config\ directory.
    This works quite well until Vista introduce UAC. Vista will not allow write opration to C:\Program Files\MyApp\Config\ folder (Config folder is being created during installer execution). However, to support legacy application, Vista use a workaround (Virtualization) for application to write. For example, MyApp.jar want to perform write on
    Real path :-
    C:\Program Files\MyApp\Config
    Vista will redirect it to :-
    Virtual path
    C:\Users\<account>\AppData\Local\VirtualStore\Program Files\MyApp\Config
    Please refer to the links for more detail
    [http://www.codeproject.com/KB/security/acl_common_data.aspx?display=Print]
    [http://www.codeproject.com/KB/vista-security/MakingAppsUACAware.aspx]
    However, this introduce several additional problems [http://support.microsoft.com/kb/927387]
    May I know what is the common practice for storing an application data files? The below are my several thoughts
    (1) Writing to
    * Windows XP - %systemdrive%\Documents and Settings\All Users\Application Data
    * Windows Vista - %systemdrive%\ProgramData
    * Windows 2000 - %systemdrive%\Documents and Settings\All Users\Application Data
    * Windows Server 2003 - %systemdrive%\Documents and Settings\All Users\Application Data
    * Windows 98 - %systemdrive%\Windows\All Users\ Application Data
    which we may retrieve through "CommonApplicationData", using the API function SHGetFolderPath. However, how can we do that in Java? How to make compatible with Linux?
    (2) Writing to user home directory through "user.home" properties. Create a folder .MyApp and write the application data on it.
    Any input and suggestion are welcomed.
    Thanks!
    cheok

    >
    ...I will store my application data files (Files where user may create, modify, rename, delete...) same path as my application directory. >See [Store Application Settings and Components|http://sdnshare.sun.com/view.jsp?id=2305] for code that will put the required parts in a suitable sub-dir of user.home.

Maybe you are looking for

  • How to print formated data/report on client's printer (Web Application)

    Hi All I want to print some formatted data/report ( it might be 1000 pages) on user's printer. Application is web based Technology used are Java - jsp - servlets i want functionality like... when user click on print button/link, data is fetched from

  • Can Bridge label images in Finder?

    I want the images I've selected in Bridge  - sorted by Rating -  to have a color label when I view them in a folder in Finder. Currently I just manually label each one in Finder with the Bridge window open. is there a better way?

  • How do I make updater recognize existing apps?

    I had an update problem with the latest Bridge CC update and a chap from Adobe, using remote access, got my stuff updated.  Now, however, my CC updater (and the update facility in PS) only seem to recognize the new Bridge CC in the preferences.  My v

  • How do I get an XSKey replaced?

    How do I get a replacement for a defective XSKey?

  • Extended Warranty in Siebel CRM

    Hi, How to handle 'Extended Warranty' for an item in Siebel CRM? Is there any document/bookshelf for it? Please share if you have any information regarding the same. Thanks in advance Regards Jagadeesh