Sqlloader with same csv files - 1 fails the other works fine!

Hi,
I am using sqlldr to load data from a csv file into a table. The table has 23 columns in it. The last column is nullable. The CSV has got 23 column values for all the records excepting couple of records which have 22 values leaving the last 23rd field blank as 23rd column in the table is nullable. Sqlloader loaded everything fine in Dev env but the records failed on Live Env with error - 'Rejected - Error on table ...column not found before end of logical record (use TRAILING NULLCOLS)'.
Surprisingly - when I copied the live csv file to Dev Env and ran it - it rejected same records with same errors but the other earlier CSV file with same 22 column values worked fine. So I have 2 copies of same CSV file which have different names - one works fine and the other rejects a few records.
Could anyone please let me know where and what to look for? Thanks in advance for the expert advice of you esteemed people on Forum.
Regards,
Ash

Ash -
Are you saying you had one file, copied to two servers, and the copy you sent to live never works on either server, but the copy you have always had on DEV works fine? This sounds like an operating system or network issue, where moving the file caused a change you cannot see. Typically happens when you go between Windows and Unix, because the end-of-line sequences are different. You could try using file comparison tools to see if they really are the same (diff on Unix, fc on Windows). You could also use the Unix utility od (octal dump, e.g. od -c file1) to see what you cannot see.
Good luck,
Andy

Similar Messages

  • On opening iCal I get a message: iCal cannot log in to your "Yahoo" acc't yor passwor may be incorrect.  When I enter my password , the same message re appears. The password work fine to access you Yahoo account. What do I do?

    On opening iCal I get a message: iCal cannot log in to your "Yahoo" acc't yor passwor may be incorrect.  When I enter my password , the same message re appears. The password work fine to access you Yahoo account. What do I do?

    I use only support.mozilla.org and never used any other websites. However, the same problem here. My ID and Password are not accepted. Had to create a new account with a temporary email to use Support - it would not allow me to use my main email, because "it is used by another account". Try to reset password - receive no email (even though there is a confirmation on the website that email to reset password has been sent). At the same time can easily receive a confirmation about User ID and account activation. Thus, the account is completely locked, and I can not use my email address for a new one. Please fix this problem.

  • We have been having a problem with newsletters for a client. The newsletter works fine except if we add a button and/or link to the top zone on that newsletter it blows up ONLY ON iPhones!

    We have been having a problem with newsletters for a client.
    The newsletter works fine except if we add a button and/or link to the top zone on that newsletter it blows up ONLY ON iPhones!
    This happened last month too. It seems to be related to length of the newsletter too. It works on every device except iPhones - so weird.

    Hi, is anyone else experiencing i-phone only problems on email campaigns? not bashing Apple, just having issues where our newsletter are only having issues on iPhones

  • Combine docs with same data fields, one overrides the other

    Hi all,
    I'm hoping someone can help me. My company uses pdf forms where we have to combine multiple pdfs of different people filling in the same base form. When we try to combine them it comes up that one overrides the other fields with the same names. This takes all the information from one form and puts it in what is supposed to be a different form.
    The error box that comes up says we must use a PDF portfolio to do this without having the override but the portfolio doesn't work for what we need.
    Is there a way around this? We have to use the same form so of course there will be the same field names.
    Many thanks in advance.

    Set the font size to Auto.
    On Thu, Feb 12, 2015 at 6:57 PM, alisond65919575 <[email protected]>

  • DNS not resolving on one Mac but the other works fine in same local network

    Snow Leopard is doing something strange to the DNS or the permission to ping.
    I have 2 Macs on the same local network, connect through the same ISP (verizon FIOS). One has no problem resolving any domain, but the other is constantly not resolving some domains.
    The problem progresses like this:
    * All of a sudden, DNS is not resolving from Ethernet (when it did perfectly well a minute ago).
    * Then I switched to wireless (using the same LAN), and it resolved fine.
    * Then it failed completely a few minutes later.
    * Then I reboot my Mac, and it seemed to clear that, and worked for a day.
    * Then it failed again in both Ethernet and Wireless; rebooting does not fix it.
    * I cleared all the caches using Onyx, did "dscacheutil -flushcache", zapped the PRAM, reinstalled 10.6.2 combo update, repaired the permission, nothing works.
    * Since the unresolved domain is my own domain, I changed the nameserver, and waited for it to propagate to see if that may be the problem, since it appeared that it is not resolving the A Record, and I waited 72 hours, and it is not resolved or propagating to the local DNS, but it worked perfectly well on my other Mac within the same network.
    * Then I added other DNS, such as google DNS 8.8.8.8 or openDNS servers to it, but it didn't fix anything.
    * Then I "ping" either the unresolved domain or my own Mac .local, and it gave me the error "permission denied". (Whereas I have no problem pinging my own Mac or the unresolved domain in my other Mac that works!).
    * Then I "sudo ping" the unresolved domain or my own Mac, and it pinged perfectly well.
    * Then I tried "ping6" my own Mac or the unresolved domain on the broken Mac, and it worked fine!
    * Also, I used http://network-tools.com to ping it, and noticed that during the trace, somewhere along the route through te7-2.dsr02.dllstx3.theplanet.com and po2.car04.dllstx5.theplanet.com, it timed out along the route, so I don't know if the timeout could have been causing the reject, but I doubted, because "sudo ping" locally will get through but "ping" does not.
    So I think I traced the Snow Leopard DNS problem as follows:
    * Why does "ping6" works, but "ping" permission is denied unless the user is root?
    * I tried to "chmod 4755 ping" but it won't let me.
    * Is it because DNS is resolving using IPv6 but not IPv4?
    * Or is Snow Leopard somehow screwed up the permission to access ping or similar DNS service?
    * Why DNS has no problem in one Mac but caused problem on the other Mac, even though they are in the same local network?
    * The only difference between the Macs maybe because I have Parallels installed in the Mac that failed to resolve DNS (with the extra Parallels Shared Ethernet), which may be interfering with it, but I tried to turn Parallels Shared Ethernet off, and it did not fix the problem.
    Can anyone help or have any idea that I can fix this nagging bug with DNS? The DNS had worked before, but it simply quit working all of a sudden, and nothing can resurrect it.
    Thanks.

    Shut down Parallels and restart w/o letting any of Parallels TCP/IP stack resurrect itself. So many network issues with VM solutions. See if the problem persists. Create a new account and ping from there. Are your search domains manually entered on the 10.6 box?

  • Suddenly some bookmark folders do not open anymore when I go under "bookmarks" if I use them in the sidebar it works. How can I fix this, it is only with 2 folders, all the other work fine.

    I have created several bookmark folders and everything has worked fine until recently. Suddenly 2 folders do not open anymore when you hover the mouse over the folder.
    If I have the bookmarks in the sidebar everything works fine.

    -> click '''Firefox''' button and click '''Exit'''
    Start Firefox in Safe Mode by Holding down the '''Option''' key while starting your Mozilla application.
    As an alternate method, go to Utilities (in the Applications folder) and open Terminal, then run:
    /Applications/Firefox.app/Contents/MacOS/firefox-bin -safe-mode
    -> Firefox Safe Mode window will appear. DON'T SELECT ANY OPTIONS, just click '''Continue in Safe Mode'''
    Firefox will open up with just basic Firefox. Check and tell if its working while you are in Safe Mode.

  • I have a MacBook Pro (purchased in 2011) with OS X Lion 10.7.4.  I'm using Microsoft Office 2011 and cannot open older PowerPoint Files (non .pptx). It will always open the same .pptx file and then the machine hangs up and just keeps spinning.

    I have a MacBook Pro (purchased in 2011) with OS X Lion 10.7.4.  I'm using Microsoft Office 2011 and cannot open older PowerPoint Files (non .pptx). It will always open the same .pptx file and then the machine hangs up and just keeps spinning.

    Thank you - that all makes sense. It is, indeed, exactly what I did when I upgraded.
    I'm also writing this on the machine that crashed a few minutes ago (I posted the crash in another thread). I got back with a 'safe boot' - as I have done a few times before.
    I've also de-installed little snitch (and then done a safe-boot & then re-boot ) since that seemed involved. I de-installed Adobe flash, since that seemed to be a problem - I then re-installed the later, apparently fixed, flash. The most recent crashes don't seeme to have a problem with flash any more.
    I've posted the various ( generally different ) crashes. I also posted a summary of the similar lines that turn up in most of the crashes.
    Unfortuantely, I'm actually trying to use the machine to meet some urgent deadlines and all this is not making it at all easy.
    I had had great hopes for 10.7.2 - I thought that the crashes must be pretty common, so would have a common aetiology. There do seem to have been some fundamental changes to the file sytem and to the video interface (that seems to cause problems to brand new iMacs as well as to my 2009 iMac).

  • How can I email using UTL_SMTP with a csv file as an attachment?

    Dear All,
    It would be great if someone could help me. I am trying to use UTL_SMTP to email with a csv file as attachment. I do get an email with a message but no attachment arrives with it.
    In fact the code used for attaching the csv file gets appended in the message body in the email.
    CREATE OR REPLACE PROCEDURE test_mail
    AS
    SENDER constant VARCHAR2(80) := '[email protected]';
    MAILHOST constant VARCHAR2(80) := 'mailhost.xxxx.ac.uk';
    mail_conn utl_smtp.connection;
    lv_rcpt VARCHAR2(80);
    lv_mesg VARCHAR2(9900);
    lv_subject VARCHAR2(80) := 'First Test Mail';
    lv_brk VARCHAR2(2) := CHR(13)||CHR(10);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25) ;
    utl_smtp.helo(mail_conn, MAILHOST) ;
    dbms_output.put_line('Sending Email to : ' ||lv_brk||'Suhas Mitra' ) ;
    lv_mesg := 'Date: '||TO_CHAR(sysdate,'dd Mon yy hh24:mi:ss')||lv_brk||
    'From: <'||SENDER||'>'||lv_brk||
    'Subject: '||lv_subject||lv_brk||
    'To: '||'[email protected]'||lv_brk||
    'MIME-Version: 1.0'||lv_brk||
    'Content-type:text/html;charset=iso-8859-1'||lv_brk||
    ' boundary="-----SECBOUND"'||
    ''||lv_brk||
    '-------SECBOUND'||
    'Some Message'
              || lv_brk ||
    '-------SECBOUND'||
              'Content-Type: text/plain;'|| lv_brk ||
              ' name="xxxx.csv"'|| lv_brk ||
              'Content-Transfer_Encoding: 8bit'|| lv_brk ||
              'Content-Disposition: attachment;'|| lv_brk ||
              ' filename="xxxx.csv"'|| lv_brk ||
              lv_brk ||
    'CSV,file,attachement'|| lv_brk ||     -- Content of attachment
    lv_brk||
    '-------SECBOUND' ;
    dbms_output.put_line('lv_mesg : ' || lv_mesg) ;
    utl_smtp.mail(mail_conn, SENDER) ;
    lv_rcpt := '[email protected]';
    utl_smtp.rcpt(mail_conn, lv_rcpt) ;
    utl_smtp.data(mail_conn, lv_mesg) ;
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    NULL ;
    WHEN OTHERS THEN
    dbms_output.put_line('Error Code : ' || SQLCODE) ;
    dbms_output.put_line('Error Message : ' || SQLERRM) ;
    utl_smtp.quit(mail_conn) ;
    END;

    LKBrwn_DBA wrote:
    Use UTL_MAIL instead.That package is an utter disappointment - and an excellent example IMO of how not to design an application programming interface. Even the source code is shoddy.. I mean, having to resort to a GOTO statement....!!?? The person(s) who wrote that package are sorely lacking in even the most basic of programming skills if structured programming is ignored and a spaghetti command used instead.
    No wonder the public interface of that code is equally shabby and thoughtless... The mail demo code posted by Oracle was better written than this "+package+" they now have bundled as the official Mail API.
    I dunno.. if I was in product management there would have been hell to pay over pushing cr@p like that to customers.

  • How to Compare 2 CSV file and store the result to 3rd csv file using PowerShell script?

    I want to do the below task using powershell script only.
    I have 2 csv files and I want to compare those two files and I want to store the comparision result to 3rd csv file. Please look at the follwingsnap:
    This image is csv file only. 
    Could you please any one help me.
    Thanks in advance.
    By
    A Path finder 
    JoSwa
    If a post answers your question, please click &quot;Mark As Answer&quot; on that post and &quot;Mark as Helpful&quot;
    Best Online Journal

    Not certain this is what you're after, but this :
    #import the contents of both csv files
    $dbexcel=import-csv c:\dbexcel.csv
    $liveexcel=import-csv C:\liveexcel.csv
    #prepare the output csv and create the headers
    $outputexcel="c:\outputexcel.csv"
    $outputline="Name,Connection Status,Version,DbExcel,LiveExcel"
    $outputline | out-file $outputexcel
    #Loop through each record based on the number of records (assuming equal number in both files)
    for ($i=0; $i -le $dbexcel.Length-1;$i++)
    # Assign the yes / null values to equal the word equivalent
    if ($dbexcel.isavail[$i] -eq "yes") {$dbavail="Available"} else {$dbavail="Unavailable"}
    if ($liveexcel.isavail[$i] -eq "yes") {$liveavail="Available"} else {$liveavail="Unavailable"}
    #create the live of csv content from the two input csv files
    $outputline=$dbexcel.name[$i] + "," + $liveexcel.'connection status'[$i] + "," + $dbexcel.version[$i] + "," + $dbavail + "," + $liveavail
    #output that line to the csv file
    $outputline | out-file $outputexcel -Append
    should do what you're looking for, or give you enough to edit it to your exact need.
    I've assumed that the dbexcel.csv and liveexcel.csv files live in the root of c:\ for this, that they include the header information, and that the outputexcel.csv file will be saved to the same place (including headers).

  • Loading a CSV file and accessing the variables

    Hi guys,
    I'm new to AS3 and dealt with AS2 before (just getting the grasp when the change it).
    Is it possible in AS3 to load an excel .csv file into Flash using the URLLoader (or ???) and the data as variables?
    I can get the .csv to load and trace the values (cell1,cell2,cell3....) but I'm not sure how to collect the data and place it into variables.
    Can I just create an array and access it like so.... myArray[0], myArray[1]? If so, I'm not sure why it's not working.
    I must be on the completely wrong path. Here's what I have so far....
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, dataLoaded);
    var request:URLRequest = new URLRequest("population.csv");
    loader.load(request);
    function dataLoaded(evt:Event):void {
        var myData:Array = new Array(loader.data);
        trace(myData[i]);
    Thanks for any help,
    Sky

    just load your csv file and use the flash string methods to allocate those values to an array:
    var myDate:Array = loader.data.split(",");

  • Read a csv file and read the fiscal yr in the 4th pos?

    Hello ABAP Experts,
    how to write a code for read a csv file and read the fiscal year in the 4th position.
    any suggestions or code highly appreciated.
    Thanks,
    BWer

    Hi Bwer,
    Declare table itab with the required fields...
    Use GUI UPLOAD to get the contents of the file (say abc.csv) in case if the file is on the presentation server...
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = 'c:\abc.csv'
       FILETYPE                        = 'ASC'
        WRITE_FIELD_SEPARATOR           = 'X'
      tables
        data_tab                        = itab
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       OTHERS                          = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use OPEN DATASET in case if the file is on the application server..
    After that USE SPLIT command at comma to get the contents of the 4th field...
    Regards,
    Tanveer.
    <b>Please mark helpful answers</b>

  • Appending multiple *.csv files while retaining the original file name in the first column

    Hi guys it's been awhile.
    I'm trying to append multiple *.csv files while retaining the original file name in the first column, the actual data set is about 40 files.
    file a.csv contains:
    1, line one in a.csv
    2, line two in a.csv
    file b.csv contains:
    1, line one in b.csv
    2, line two in b.csv
    output.csv result is this:
    I would like this:
    a.csv, 1, line one in a.csv
    a.csv, 2, line two in a.csv
    b.csv, 1, line one in b.csv
    b.csv, 2, line two in b.csv
    Any suggestions to speed up my hobbling attempts would be aprieciated
    Thanks,
    -SS
    Solved!
    Go to Solution.

    What you could do is given in the attachment.
    Started with 2 files :
    a.csv
    copy of a.csv
    Both with data :
    1;1.123
    2;2.234
    3;3.345
    Output :
    a.csv;1;1.123
    a.csv;2;2.234
    a.csv;3;3.345
    Copy of a.csv;1;1.123
    Copy of a.csv;2;2.234
    Copy of a.csv;3;3.345
    If you have more questions, just shoot
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    AppendingCSV.JPG ‏73 KB

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Loading data into csv file based on the count of data in table in ODI

    Hi,
    I have a requirement like i have data in table and need to be loaded in csv file.
    If the count of the data in the table exceeds the csv data limit then i need to call the same procedure again to
    generate one more csv file and load the remaining data into it.my data in the table may vary all the time.
    I am new to this ODI.Can anyone tell any ways to do it in ODI or tell me any logic to do this?
    Thanks in advance..
    Edited by: 883410 on May 22, 2012 12:01 AM

    What limit on the csv file are you talking about. There isn't a limit (unless you are on Unix where the filesize is limit is 2GB). Are you talking about opening it in earlier versions of Excel where the display limit is 60,000 rows as this is irrelevant for your operation?

  • Working with bootstrap css file after opening the browser

    working with bootstrap css file after opening the browser when i came back on working on bootstrap my computer started hanging and opning new tabs  and showing message " A caused the program to stop working correctly.Windows will close thoe program and notify you if  solution is available"

    Hi Geetha,
    1.) button problem:
    i don't know how you open the form - when you do it with a XML file maybe you packed the wrong XML file into your addon installer.
    2.) the flickering can be a problem of formatted searches or interacting with other addons.
    when addon a. changes a field it can be that addon b. does something because of the event from addon a.
    the same can happen when you have formatted searches that do something when a field changes.
    ok - that are my last tipps for this day
    good night
    David

Maybe you are looking for

  • Problems viewing text in Safari 2.0.4

    I'm hoping someone can help me; when a user visits this website in Safari 2.0.4 on certain sub-category pages the text either runs off the page and under the graphics on the right handside or words get cut off in the middle and word wrapping does not

  • Reg: Query group by problem

    Hi, I am trying to write query for report generation.According to my client requirment I need to calculate the difference between two date columns for "n" number of rows and i need to find the number of rows which are smaller than 2 and number of row

  • The volume for "Movies" cannot be found. (Finder fix SOLUTION)

    Here is a simple solution I posted in another thread ("Erased Movies Volume?"). The original poster and I were unable to access our Movies via the "PLACES" menu in the Finder window because we received an error message that said it could not be found

  • JConsole Development

    Hello, I know limited Java, but I good with several other programming languages (PHP, C#, VB6, VBA, HTML, and JavaScript), so I am looking to learn. My company is using a black box application developed in Java and we are having performance issues wi

  • Mass change of BOM

    Dear experts, I want to change BOM for lot of material For that I want some procedure I tried CS20 but no use. Plz give me some solution Regards, sameer