Unable to read from .csv having field in double quotes

Hi to all,
I am trying to reading data from .csv file using JDBC it was reading perfectly when fields are without quotes
i.e. Field1 and unable to read with filedname as "Field" instead giving Exception Column Not Found, please help me out with this.
Expecting your responses in this matter.
Thanks in advance.
khiz_eng

So you really read the csv (ASCII) file over JDBC?
Well, for DSNless connection there's a simple trick:
1) configure a DSN exactly like your actual (system or user DSN), but as a file DSN.
This can't be used for JDBC conections, but it contains all the params in a very clear format which you have to set for your JDBC connection just with the same values.
2) Code your connect string:Connection con = DriverManager.getConnection( "jdbc:odbc:Driver=valueForDriverInFileDSN;Database=valueForDatabaseInFileDSN", user, pw );Look, if you succeed this way.
If not, please post:
* your connect string
* the DBException's informations
* the content of your FileDSN file

Similar Messages

  • Zen Xtra (Nomad) - Unable to read from device error (have tried everythi

    Recently, I've been having problems with my Creative Zen Xtra Nomad mp3 player. One day it started freezing and lagging massi'vely when I would enter nomad explorer. Now it's virtually impossible to drag and drop something from nomad explorer to my computer or vise versa (keep getting the unable to read from device error). However, sometimes I am able to get an mp3 or two after about 5 minutes of transfer time.
    I have no idea why it is doing this. One day I'm transferring my data back and forth with no problem, and the very next day I am getting this freezing, lagging, and errors when trying to transfer. The only thing that changed was me formatting my computer in between it working and it not working, but I did reinstall the driver and nomad explorer once I formatted (I'm also using the same USB 2.0 cable, but it worked fine the day before, so I am pretty sure that's not part of the problem). I was using the mp3 player to store about 0 GB worth of data for when I formatted, and now I'm unable to retrieve virtually any of it. I've tried everything under the PC Connectivity link short of formatting the mp3 hard dri've (and that is not an option because I need the files). I took it to a friends house to try on his computer, but it acted the same way. I'm completely stumped. Is there anything I haven't ruled out? Also, I'm running Windows XP Pro SP2, and I was using SP2 before the format as well if that has any relevance.
    Please let me know if I've left out any important information relevant to this issue. Any help would be very much appreciated.
    Thanks in advance.
    -Noah Patterson
    Edit: I'm having the exact problem as this guy, but I didn't seem to find any answers on his thread.
    http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=6459&query.id=3264 5#M6459
    Message Edited by talzok on 09-20-2005 08:03 AMMessage Edited by talzok on 09-20-2005 08:09 AM

    Never use MP3 players to store important data, or as a single point of storage for any data (that includes keeping a backup of the player's audio tracks). You can have problems like this with accessing the data, as well as simply dropping the player and losing the lot.
    There are a couple of methods I've seen that have worked to retrieve data:
    . Driver update - either update to the latest drivers, or nonsensically downgrade to the drivers that come on the install CD.
    2. Notmad Explorer - use the Xtreamer function in Notmad Explorer's trial version (which is free) to access the data and download it. It will be tedious, because I assume you have to download one file at a time.
    As for your general problem, I would try using Creative's MediaSource instead of Nomad Explorer to access the player (people generally don't have good experiences with Nomad Explorer).
    Also make sure you download the latest versions of the drivers (taking above into account), MediaSource, and the MediaSource plugin from Nomadworld.com downloads.
    Once you have the data off (hopefully!) you might simply want to reformat it if none of the above hel
    ps.

  • Unable to read from Java MQ Queue in Unix

    Hi,
    I developed a small application that uses a scheduler as an input to a jcd. Once invoked, the jcd reads from a Java MQ queue and writes the result to the log.
    I developed the application on CAPS 6 in Solaris 10.
    We are however unable to read from the queue in Unix. The code returns an empty queue, even though the queue does have messages in it. Below is the code in the jcd used to read from the queue:
    int recCount = 0;
    +while (true) {+
    com.stc.connectors.jms.Message txtMsg = JMS_1.receiveNoWait();
    +// break out of loop, if no more messages+
    +if (txtMsg == null) {+
    logger.info( "Record Count is :: " recCount );+
    break;
    +}+
    recCount+;+
    +}+
    The same project, imported into CAPS 6 on a Windows platform, works without issue.
    Has anyone experienced compatability issues like this with Java MQ between Windows and Unix?
    Adt

    This is probably coz of the JMS header.
    Try setting MQJMS_CLIENT_NONJMS_MQ as the target client and also try retrieving the message as ByteStream rather than TextMessage.

  • Unable to read from Jukebox Need Urgent he

    Need help, fast, Only got and a half day left to get my Creative Zen Touch to work, I have tons of important files in it and I need it badly!I'v been using my Zen touch as a storage device like a USB or sumthin, newaiz, I just upgraded the firmware to .0.03, from .00.06 to .0.03 to be more detailed. I have read some other posts relating to this kind of matter, I tried the ... Disc Clean Up solution, downloading the latest software except those CD burners program, I uninstalled all of my Creative Programs and installed an older version of the program and still didnt work then I upgraded those program and still wont work. Went to read the FAQs, couldnt find any answers. Can anyone please give me a useful response? I need it badly Please be fully detailed, I am not very familiar with shortcut details. Thanks

    Sorry this is not an answer but I just posted this on the European boards and it might make solving this problem a bit easier:
    Player: Nomad Jukebox Zen Xtra 30GB
    Firmware: .20.08
    Explorer: 3.0.0
    Driver: .26.02
    OS: XP SP2 updated
    MB: MSI K8Neo Platinum (MS-7030) (AwardBIOS 6.00PG)
    Processor: AMD Athlon64 3200+
    Memory: GB Patriot 3200 DDR
    Video: ATI Radeon 9600 Pro (DNA 3.4.4.) (Directx 9.0c)
    Sound: Audigy Gamer (03030 driver)
    HD: Maxtor 6Y60MO (60GB)
    So I made the mistake of using my mp3 player as the sole backup device for 30 Gigs of my music. I used the motherboards included highspeed USB port by the way. So now that I have reformatted and reinstalled everything I try and copy it all back from the Data Library section of my player using Nomad Explorer and end up waiting a few minutes while the software decideds if it will freeze or not before ending up with an error of: "unable to read from jukebox device"
    This is MOST DISTRESSING, I would really appreciate more help than the other 2 people who posted this problem got (read: none). So if anyone has any ideas besides reinstall nomad explorer (which I did) then I am all eyes.
    Thank you for your time and help.
    Nick T
    Maybe if you could post your system specs we could see a similarity or two, like what type of USB port did you use...Message Edited by kalisto_9 on 0-02-2005 0:08 PM

  • Reading from .CSV and storing it into a collection

    Hi folks,
    Is there a way to make a dynamic procedure to work with .CSV documents and store it into a collection? For example you have to make a procedure to read from .CSV but users upload 10 different version that have different number of columns.
    Normally I would define a record type to match those columns and store it into a collection. However if I don't know the number of columns I would need to define 10 records in advance which I am trying to avoid.
    Problem is I cant define SQL elements on the fly. Meaning on production I don't have the rights to dynamically create a table to match my columns and then drop the table after I no longer need it so I need to store data into a collection.
    And the last option where I would loop through the document and then do the operations I need is not good since the document is a part of other procedures that write and read from it. The idea is to pick the data, store it into a collection, close the file and then work with it.
    This is what I got so far:
    declare
      -- Variables
      l_file      utl_file.file_type;
      l_line      varchar2(10000);
      l_string    varchar2(32000);
      l_delimiter varchar2(10);
      -- Types
      type r_kolona is record(
        column_1 varchar2(500)
       ,column_2 varchar2(500)
       ,column_3 varchar2(500)
       ,column_4 varchar2(500)
       ,column_5 varchar2(500));
      type t_column_table is table of r_kolona;
      t_column    t_column_table := t_column_table();
    begin
      /*Define the delimiter*/
      l_delimiter := ';';
      /*Open file*/
      l_file      := utl_file.fopen( 'some dir', 'some.csv', 'R');
      /*Takes first row of document as header*/
      utl_file.get_line( l_file, l_line);
      loop
        begin
          utl_file.get_line( l_file, l_line);
          /*Delete newline operator*/
          l_string                         := rtrim( l_line, chr(13)) || l_delimiter;
          /*Extend array and insert parsed values */
          t_column.extend;
          t_column(t_column.last).column_1 := substr( l_string, 1, instr( l_string, l_delimiter, 1, 1) - 1);
          t_column(t_column.last).column_2 := substr( l_string, instr( l_string, l_delimiter, 1, 1) + 1, instr( l_string, l_delimiter, 1, 2) - instr( l_string, l_delimiter, 1, 1) - 1);
          t_column(t_column.last).column_3 := substr( l_string, instr( l_string, l_delimiter, 1, 2) + 1, instr( l_string, l_delimiter, 1, 3) - instr( l_string, l_delimiter, 1, 2) - 1);
          t_column(t_column.last).column_4 := substr( l_string, instr( l_string, l_delimiter, 1, 3) + 1, instr( l_string, l_delimiter, 1, 4) - instr( l_string, l_delimiter, 1, 3) - 1);
          t_column(t_column.last).column_5 := substr( l_string, instr( l_string, l_delimiter, 1, 4) + 1, instr( l_string, l_delimiter, 1, 5) - instr( l_string, l_delimiter, 1, 4) - 1);
        exception
          when no_data_found then
            exit;
        end;
      end loop;
      /*Close file*/
      utl_file.fclose(l_file);
      /*Loop through collection elements*/
      for i in t_column.first .. t_column.last
      loop
        dbms_output.put_line(
             t_column(i).column_1
          || ' '
          || t_column(i).column_2
          || ' '
          || t_column(i).column_3
          || ' '
          || t_column(i).column_4
          || ' '
          || t_column(i).column_5);
      end loop;
    exception
      when others then
        utl_file.fclose(l_file);
    end; Stupid version would be to define a record with 50 elements and hope they dont nuke the excel with more columns :)
    Best regards,
    Igor

    Igor S. wrote:
    Use some to query data and then fix wrong entries on prod (insert, update, delete). Manipulate with some and then make new reports. The first that come to mind but basicly is to write a procedure that can be used for ANY .csv so I dont have to rewrite the code.This is logically wrong and smacks of poor design.
    You're wanting to take CSV files with various unknown formats of data, read that data into some generic structure, and then somehow magically be able to process the unknown data to be able to "fix wrong entries". If everything is unknown... how will you know what needs fixing?
    Good design of any system stipulates the structures that are acceptable, and if that means you know there are just 20 possible CSV formats and you can implement a mechanism to determine which format a particular CSV is in (perhaps something in the filename?) then you will create 20 known targets (record structures/tables or whatever) to receive that data into, using 20 external tables, or procedure or whatever is necessary.
    Doing anything other than that is poor design, leaves the code open to breaking, is non-scalable, hard to debug, and just wrong on so many levels. This isn't how software is engineered.
    For example you have 20 developers that have to work with .CSV files. So when someone has to work with a .CSV he would call a procedure with parameters directory and file name. And as a out parameter would get a collection with .CSV stored inside.As others have mentioned, give the developers an Apex application for their data entry/manipulation, working directly on the database with known structures and validation so they can't create "wrong" data in the first place. They can then export that as .CSV data for other purposes if really required.

  • XI Error:  Unable to read from SLD

    I have created product, software components, Technical system and business system in SLD. I am trying to import into design (Integration Repository) for further steps but it gives an error saying unable to read from SLD. I am using SAP XI 7.0
    How do i rectify this error to import them into I.R ?

    Sridhar,
    Please read the below thread and try to check all the replies in the thread .It will be very much useful.
    Unable to read software component versions from SLD
    Best regards,
    raj.

  • I cannot display image (read from oracle BLOB field) on browser?

    I cannot display image (read from oracle BLOB field) on browser?
    Following is my code, someone can give me an advise?
    content.htm:
    <html>
    <h1>this is a test .</h1>
    <hr>
    <img  src="showcontent.jsp">
    </html>showcontent.jsp:
    <%@ page import="com.stsc.util.*" %>
    <%@ include file="/html/base.jsp" %>
    <% 
         STDataSet data = new STDataSet();
    //get blob field from database     
         String sql = "SELECT NR FROM ZWTAB WHERE BZH='liqf004' AND ZJH='001'";
         //get the result from database
         ResultSet rs = data.getResult(sql,dbBase);
         if (rs!=null && rs.next()) {
              Blob myBlob = rs.getBlob("NR");
              response.setContentType("image/jpeg");//
              byte[] ba = myBlob.getBytes(1, (int)myBlob.length());
              response.getOutputStream().write(ba);
              response.getOutputStream().flush();
         // close your result set, statement
         data.close();     
    %>

    Don't use jsp for that, use servlet. because the jsp engine will send a blank lines to outPutStream corresponding to <%@ ...> tags and other contents included in your /html/base.jsp file before sending the image. The result will not be treated as a valid image by the browser.
    To test this, type directly showcontent.jsp on your browser, and view it source.
    regards

  • "Unable to read from or write to your play

    When I go to create a playlist with the music that is already on my Zen, this pops up. Why isnt it working? Its probably something really simple that I overlooked... but Im stumped. I came here as a last resort

    I received this same message and came on here to find some help. I am using the new Creative Zen, 6 gig.
    I am using a Windows Vista computer.
    When the player is docked and I am using the Zen Media Explorer, I go to "create playlists"
    The player loads, I can see all of my files and most of my music on the creative playlist wizard. I clicked on one file (containing most of my music) and this message pops up. "Unable to read from or write to your player"
    Any suggestions?

  • "Unable to read from or write to your player" Zen 1

    I have a new Creative Zen 6G and am using Windows Vista. While using the Creative Media Organizer, I tried to create a new playlist. The player shows all my folders, and when I try to open the folder that contains the majority of my music, the message "Unable to read from or write to your player" appears. Does anyone know what this message means or what I have to do to fix it's Thank you-Melissa

    Have you tried adding from a folder rather than iPhoto to see if that makes a difference? Create a folder on your hard drive called called "iPod Photos" or something similar and drag the photos you want on your iPod to it. Under the photo preferences for the iPod, point iTunes to "synchronize photos from" and choose to update from your new folder.

  • Unable to read from jukebox devi

    i've fot a creative zen touch. when i try to access the data i have stored in it, i cannot acces it. i get an error that says "unable to read from jukebox device." what can i do? may someone please help? i would greatly appreciate it. thank youMessage Edited by s80 on 0-02-2005 08:20 PM

    Sorry this is not an answer but I just posted this on the European boards and it might make solving this problem a bit easier:
    Player: Nomad Jukebox Zen Xtra 30GB
    Firmware: .20.08
    Explorer: 3.0.0
    Driver: .26.02
    OS: XP SP2 updated
    MB: MSI K8Neo Platinum (MS-7030) (AwardBIOS 6.00PG)
    Processor: AMD Athlon64 3200+
    Memory: GB Patriot 3200 DDR
    Video: ATI Radeon 9600 Pro (DNA 3.4.4.) (Directx 9.0c)
    Sound: Audigy Gamer (03030 driver)
    HD: Maxtor 6Y60MO (60GB)
    So I made the mistake of using my mp3 player as the sole backup device for 30 Gigs of my music. I used the motherboards included highspeed USB port by the way. So now that I have reformatted and reinstalled everything I try and copy it all back from the Data Library section of my player using Nomad Explorer and end up waiting a few minutes while the software decideds if it will freeze or not before ending up with an error of: "unable to read from jukebox device"
    This is MOST DISTRESSING, I would really appreciate more help than the other 2 people who posted this problem got (read: none). So if anyone has any ideas besides reinstall nomad explorer (which I did) then I am all eyes.
    Thank you for your time and help.
    Nick T
    Maybe if you could post your system specs we could see a similarity or two, like what type of USB port did you use...Message Edited by kalisto_9 on 0-02-2005 0:08 PM

  • Read from csv file and plot particular columns

    Hello,
    I`m a new user of Labview and here it comes...my first major problem.
    Maybe this has been discussed before. I’ve made a search to solve my problem first but I couldn`t find anything helpful so I `ve decided to post a new message.
    So here is my problem:
    I`m working in a small semiconductor lab where different types of nitrides are grown using proprietary reactor. The goal is to read the collected csv files from each growth in Labview and plot the acquired data in appropriate graphs.
    I have a bunch of csv files and I have to make a Labview program to read them.
    The first part of my project I`ve decided to be displaying the csv file (growth log file) under labview (which I think works fine).
    The second one is to be able to plot particular columns from the recipe in graphs in Labview (that one actually gives me a lot of trouble):
    1. Timestamp vs Temperature /columns B and D/
    2. Timestamp vs Gas flow /columns L to S/
    3. Timestamp vs Pressure /columns E,K,T,U,V/
    I`ve got one more problem. How can I convert the Timestamp shown in csv file to human readable date in labview? This actually is a big problem, because the timestamp is my x axis and I want to know at what time a particular process took place and I also want to be able to see the converted timestamp when displaying csv file at first. I`ve read a lot about time stamping in excel and timestamp in labview but I`m still confused how to convert it in my case.
    I don`t have problems displaying csv file under Labview. My problems are with the timestamp and the graphs.
    Sorry for my awful English.  I hope you can understand my problems since English is not my mother language. 
    Please find the attached files.
    If you have any ideas or suggestions I`ll be more than happy to discuss them.
    Thank you in advance.
    Have a nice day! 
    Attachments:
    growth log.csv ‏298 KB
    Read from growth log.vi ‏33 KB

    Hello again,
    I`m having problems with converting the first column in the attached above file Growth Log.csv.
    I have a code converting xl timestamp to time and using Index Array traying to grab a particular column out of it but the attached file is written in strings so I guess I have to redo it in array but I don`t know how.Would you help me with this one?
    Attachments:
    Xl Timestamp to Time.vi ‏21 KB

  • Sql loader unable to read from pipe

    Hi All:
    I'm using named pipe along with Oracle SQL*Loader to load some 20 millions rows into database.
    The source of the pipe is from a Java application which write to the pipe using simple FileOutputStream.
    It can be observed that the Oracle SQL*Loader need to wait a lot on the Java application to produce enough data for loading.
    The waiting is fine. However, the Oracle SQL*Loader always exist after loading about 1 million rows with output like:
    SQL*Loader-501: Unable to read file (upipe.dat)
    SQL*Loader-560: error reading file
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    And in this case, the Java will throw IOException with information:
    Exception in thread "main" java.io.IOException: Broken pipe
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:284)
    It runs on Linux environment with 11g database.
    Any idea why this will happen?

    check
         SQLLDR NOT LOADING ALL DATA IN DAT FILE : SQL*Loader-510/SQL*Loader-2026 [ID 741100.1]

  • Reading from select-options field into the internal table

    Hi,
      I have to read the low and high ranges from the select-options fields into a field in the internal table in order to update the same field in line item table. since the user may change the screen fields, i need to pass the values directly from the screen and store it in a variable in the internal table. Is there a way to pass both ranges, low and high to one variable which holds the entire range?
    Thanks,
    Sruthy

    Hi,
    In the Selection screen you can directly read the field(Select-option)value using read statement as follows:
    READ TABLE <SELECT-OPTIONS field name> [using index] INTO <work area>.
    After reading you can directly access all the values as follows and can store them in the variables:
    var1 = <work area>-LOW
    var2 = <work area>-HIGH
    var3 = <work area>-SIGN
    var4 = <work area>-OPTION
    as per your requirement.
    I think this will help you.
    <b>Kindly reward if helpful.</b>
    Regards,
    Shakuntala.

  • Unable to read from the registry

    I have a button on one of my forms that needs to read from the registry (get default web browser location).
    When I am logged in as a member of the administrators group I can perform the operation. When I am logged in as a member of the Power Users group I cannot read the value.
    Is this a known issue in Windows 2000 Professional? Is there a techincal paper or resource that shows this?
    Or am I doing something incorrectly?
    Please Help . . .

    And Sharepoint forum is here:
    http://social.technet.microsoft.com/Forums/en-US/category/sharepoint/
    Regards,
    Miya
    Miya Yao
    TechNet Community Support

  • Unable to read from JMS queue on Solaris

    Hi all,
    I am experiencing a strange issue with JMS and Oracle 10gR2 (single server) on Solaris.
    The design is simple, 1 server multiple clients communication via 2 queues (P2P domain). Each client has a session ID and can read messages from the queue that have been tagged with the proper session ID.
    I guess is simpler to show the code involved:
    @Override
    public void becomeSender(String queueName) throws JMSException {
    setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
    ((AQjmsDestination) getDestination()).start(getSession(), true, true);
    setProducer(((AQjmsSession) getSession()).createSender((Queue) getDestination()));
    getProducer().setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    @Override
    public void becomeReceiver(String queueName, String sessionID) throws JMSException, JMSConnectorException {
    setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
    ((AQjmsDestination) getDestination()).start(getSession(), true, true);
    setConsumer(((AQjmsSession) getSession()).createReceiver((Queue) getDestination(), getReceiverSessionPredicate(sessionID)));
    getConnection().start();
    public static final String jmsReceiverSessionProperty = "msgReceiverSession";
    public static final String jmsSenderSessionProperty = "msgSenderSession";
    public static String getReceiverSessionPredicate(String sessionID) throws JMSConnectorException {
    if (sessionID == null) {
    throw new JMSConnectorException("Session ID must be provided!");
    return jmsReceiverSessionProperty + " = '" + sessionID + "' OR " + jmsReceiverSessionProperty + " = '" + TransferMessage.TARGET_ANY_RECEIVER + "'";
    and the code that sends the message
    public void sendMessage(TransferMessage aMessage) throws JMSException, IOException {
    BytesMessage aMsg = createBytesMessage();
    aMsg.setStringProperty(jmsReceiverSessionProperty, aMessage.getReceiverSessionID());
    aMsg.setStringProperty(jmsSenderSessionProperty, getSessionID());
    sendMessage(aMsg);
    Everything works great in Windows XP/7/2008 server 64 virtual machine or not but it fails in Solaris.
    The messages are written to the queue as I can see them in the queue table but they never get read from the queue...Oh I missed a bit of information, I use onMessage to handle new message on queues.
    The Solaris server is at client environment and I have no remote access to it.
    I can run my my simple connectivity tests on a Solaris instance if anyone care to provide me with credentials and 2 queues or even better I can send the jars to run on local environment.
    Any help would be much appreciated. Thanks,
    Eddie

    Moderator Action:
    This post has been moved from the Java Message Service (JMS),
    to the suggested Database Advanced Queuing forum, for closer topic alignment.

Maybe you are looking for