Import excel data for labview control

I'm having some trouble importing excel data into labview. Goals: Input valve flow rates into excel, use those values to control DAQ, have user balance odor with excel defined flow rate, export balance data to excel. Here is what I have so far. Any help is greatly appreciated.
Attachments:
Intensity.vi ‏162 KB

Where in the code are you reading from the Excel Spreadsheet? What VIs are you using? What are the problems are you experiencing (errors, unexpected values, etc.)?
There is a Read From Spreadsheet File.vi in LabVIEW. LabVIEW uses ActiveX controls for .xlsx files, so saving the spreadsheet as a CSV file may be better for this VI. Try it out! See what happens.
Here some more info on reading from spreadsheets:
LabVIEW Manual: Read From Spreadsheet File VI
KnowledgeBase article: How Can I Import Spreadsheet Files into LabVIEW using the .csv Format?
Taylor B.
National Instruments

Similar Messages

  • Importing excel data into oracle tables

    Hello gurus,
    Importing excel data into oracle tables..
    I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
    Finally i was totally confused in terms how to get this done....
    Here is wat i have
       - Excel file on local computer.
       - i have laod data into dev environment tables(So no risk involved, but want to try something simple)
       - Oracle version 11.1.0.7
       - Sqlplus and toad (editors)
    Here is wat i like to do ....i dont know if its possible
        - Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
       SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
    Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
    If you suggest sqlloader, any code example will be greatly appriciated.
    Thank you so much!!!

    Hi,
    user642297 wrote:
    Imran,
    This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
    Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
    try this:
    load data
    infile 'C:\dest.csv'
    into table dest_table
    fields terminated by "~" optionally enclosed by '"'
    TRAILING NULLCOLS
    (name,
    owner_nm,
    description_column,
    UPDT_DT DATE 'MM/DD/YYYY')
    {code}
    you can get more info about sql loader and your error here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    http://www.allinterview.com/showanswers/53766.html
    And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
    Any thoughts ???
    It is same as a delimiter text file.
    steps to create a .dat file (from a excel file):
    1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
    2. Save the file as unicode text.
    3. Open the file in text editor and remove all the tabs (find an replace with blank)
    4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
    5. Your .dat file is ready.
    Regards
    Imran
    Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Import excel data from OWB10.2

    I wanted to import excel data into OWB 10gr2. So i have followed the steps in the attached link. But i cannot perform the operations from step 6 in OWB 10rR2.
    In OWB10.2 how could i create a new database link. Inorder to create a new module below ODBC i have to give the location. I cannot create the location.
    Step 6: Create an ODBC Source Module and a Database Link
    Use the following steps to create an ODBC source module and database link:
    1. From the Warehouse Builder console, create an ODBC source module. On the
    navigation tree, ODBC modules are listed under the Others node of the Databases
    node.
    2. On the Connection Information page, click New Database Link to create a new
    database link that reads data using the data source created. Figure 3–3 shows the
    entries used on the New Database Link dialog.
    Note: Ensure that the initialization parameter GLOBAL_NAMES is set
    to FALSE in the database's initialization parameter file. FALSE is the
    default setting for this parameter.
    Step 6: Create an ODBC Source Module and a Database Link
    3-4 Oracle Warehouse Builder Case Book
    Figure 3–3 New Database Link Dialog
    Notice that the Oracle Service Name field uses the Oracle system identifier
    specified for the agent.
    3. Ensure that the Use for Heterogeneous Services option is selected.
    Because you are not accessing an Oracle database, you can enter any value for
    username and password.
    4. Create and test this database link. Close the New Database Link dialog.
    5. Leave the Schema name <unspecified>. Click the Change Schema button and
    select <unspecified>. The Connection Information page now looks as shown in
    Figure 3–4.
    Step 8: Create a Mapping to Load Data Into the Target Table
    How Do I Load Data Stored in a Microsoft Excel File? 3-5
    Figure 3–4 Connection Information Page
    6. Create a new deployment location for the module or specify an existing location.
    http://www.oracle.com/technology/products/warehouse/pdf/Cases/case3.pdf
    But i cannot create in OWB10.2.
    Can any body suggest me the process.

    Gillies,
    I am not able to create a new location for ODBC in connection explorer.
    Which option should i consider. Should i consider database link or host:port:service or sql*net connection. suppose If i take database link option what is the description i have to enter in database link box. Should i create a database link manually from sql*plus.

  • Inability to import Excel data with xlsx or xlsm extensions

    Inability to import Excel data with xlsx or xlsm using Microsoft Project Standard V14 Import Wizard.   
    Get error message"Project cannot recognize this file format. Do you want to open this file in text only?"   when using xlsm.
    Nothing  no wizard or data when when trying xlsx.
    Windows XP/Office 2007. SP1 for MSP2010 installed.
    Thank you in advance.   Pete

    Pete H --
    No, it is not possible to import Excel files with either the xlsx or the the xlsm file extension.  This is simply a limitation of the Import/Export Wizard.  Sorry.  Hope this helps.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • I need a sample excel data for practicing Dashboards

    Hi Experts ,
                        I am new to SAP  BO  Dashboards. i need sample excel data for practicing and designing a dash boards . kindly help me to get sample excel files from any where .Please suggest me where i can get sample excel files.
    Regards
    Abhi

    Hi,
    open the samples in the dashboard which come with source data as excel.or search on google you will get the dashboard files with sample excel data.or try to create own sample data and use in dashboard for learning.
    Amit

  • How can I set Excel Data In LabVIEW

    Hi,
    There is an example about  how to use LabVIEW and ActiveX to programmatically read in Excel data. It uses Range and then by reading Value2 it is possible to read excel values in that range in a specific sheet.
    http://www.ni.com/example/28409/en/
    Now I would like to write data ( 2D string ) to specific excel sheet. Could you please let me know if there is a way to modify this code to use it for writing to Excel instead of reading
    I actually would like to write 2D data to specific sheet of an Excel form. The Read_Excel_Values.llb works perfect for opening an Excel file, specify a sheet and then read the data but I would like to write instead of read.
    Thanks 

    Hi Tintin,
    Please find the attached VI where i tried to write a 2d array using activeX functions to an excel sheet.
    Regards,
    Srikrishna.J

  • Retaining changes and format  of  imported excel data.. please help.

    Is there some kind of secret that Im mising out on that will allow me to make changes to the data in the excel cell range in which I import to an InDesign document?
    It was working fine, until I had to add a line of data to the import field range, and now it asks me every time I open the InDesign file to apply changes.. And now when I update said imported data, it comes up as little red dots, and I have to change all of the cell parameters to get the text to show.
    Obviously this is very annoying, and Im hoping there is an easy solution. Im thinking it must involve re-linking the data in the InDesign file, and I must be doing something wrong not to be able to get it to keep the changes I've made and the format it is in so that I do not have to the "red dot" fix every day.
    Hopefully Ive explained this well enough.. Im dying for some help :)
    Thanks in advance
    J

    Im not sure I want it to not keep the link..
    I'll explain what Im using InDesign for, maybe it will help..
    I use it to update daily information (numbers/data) for a publication. I update and save all of the info in the Excel files that contain the data, and then I use InDesign to place all of the data together in a file (which I then turn into a PDF).
    All of the other data that Im pulling into the InDesign file from the same excel file do not go all screwy and give me red dots, only the one box of info that Ive had to add a line of data to.. and like I say, now it updates and pulls into InDesign as different font size and red dots.
    If I turn of that link option like you say, will my daily info still update and pull into the InDesign file?
    Again, thanks for your help.
    J

  • How do i import excel data base into pdf form drop down field

    Hi,
    I have a table of about 2500 rows and three columns that i would like to import into a drop down window on a PDF form to be self populated when item selected rather than entering the data. How can this be done?
    Thanks!
    Richard

    Hi,
    I did not know only two entries for each option item is it. I have manually entered data in the drop down an list boxes. With 2500 lines of data I was hoping there was an easier way other than manually entering the data.
    I have no knowledge of Java Scripting.....
    I was just wondering if there was a way from an Excel spreadsheet to import that data into a PDF form to be selectable to populate PDF fields in a form. It doesn't sound like it.
    Thanks......

  • Maintain Validity Date for Mitigation Control Assignment to Users Virsa 5.2

    We have over 1,000 SoD's all mitigated.  The val;idity date for these mitigation controls needs to be updated.  Does anyone know a way to perform a range of updates so it is not necessary to update each user assigned to a Mitigation Control.

    The only way to do that currently would be to download the table information, edit in Excel and re-upload the table.
    Not for the faint of heart, but doable.
    Frank.

  • Import a Date for Sorting

    I had a large database of my songs on MS Access which included the following info for each song: Title(Name), Artist and Date. The Date was the mm/dd/yy which the song first entered the Top 40 according to Billboard (from one of their reference books).
    I have imported all my music into iTunes and while I am satisfied with the automatic entry of Name & Artist during the rip, I would like to find a way to copy or enter the Top 40 Date for each song. I'd like to create playlists sorted by the Top 40 Date.
    Is it possible to add this info - hopefully in a scripted way?
    The only solution I can see is to enter a date in "yyyy-mm-dd" format into an unoccupied field such as "Sort Show" which is found under the SORTING Tab when you do a "Get Info" (ctrl-I) on a song. This requires entering the date for each song manually which in my case is prohibitive since I have over 2000 songs.
    Are there any scripts, apps or suggestions that simplify the process? Any easy way to import the data?

    Hi,
    1) getting date from Excel:
    What format does the date have?
    Are you able to convert the value to the Date Type ?
    2) putting into the SBO form:
    Are you filling it into the DataSource, or just typing it as a String into the EditText?
    These are the basic questions, you have to ask yourself.
    1)
    For example: there is a difference when accessing the Excell Cells(x,y).Value and the Cells(x,y).Text
    .Value is usually in Date_Variable format, but the Text is formated to for example MM-DD-YYYY format.
    Perhaps you're not able to convert the MM-DD-YYYY into the date variable, thus you will have to change the "MM-DD-YYYY" into the "DD.MM.YYYY" format so you can put it somewhere.
    2)
    Same problem is with the insertion of date into the SBO, when filling the EditText.String, you will have to convert it into the date, according to the SBO settings ... for example: "MM.DD.YYYY"
    There is also the SBObob object, which has the "Format_StringToDate" method, which will convert the string, into the format for DataSource...
    Regards,
    Jaro

  • Importing excel data into ZAM 7.5 using SQL2005

    Hi,
    I am running ZAM 7.5 and have about 6500 workstation records in inventory. I have an excel spreadsheet that has been maintained for several years with some demographic info in it such as Site, Department, Building, etc for about 4000 of those workstations. I would like to get that information into the ZAM SQL2005 database. Can I import the data into the SQL database directly or is there a tool to do it? There are no purchase records tied to this data so using the purchase record import does not seem like an option. Any advice?
    Thanks,
    Jay

    Originally Posted by JoeyGuida
    I have found this document to very usefull.
    How to import an Excel file into SQL Server 2005 using Integration Services
    How to import an Excel file into SQL Server 2005 using Integration Services | Servers and Storage | TechRepublic.com
    Do you know what table to import this data to?

  • Help with Importing Excel Data into Formatted Tables

    This is my first post, here, so please be gentle!
    I am a relatively new user of InDesign CS4, and I am creating a 70-pg manufacturer's price book.  A very large portion of each page is going to be size and price information imported from a large Excel spreadsheet.
    I have created the table format that I'd like to use for each page, but the trouble comes when I import the Excel data into that table.  For some reason, when I import, it all dumps into one cell.  Would it be best to import as an unformatted table, and then format the table each time, or is there a way to simply import the data into my pre-formatted table?  I've seen how the former is done, but the latter seems much easier (...although that could be my inexperience talking).
    Any advice would be greatly appreciated!
    Thanks so much,
    Laura (V1500)

    Thank you both so much for your time!  This is exactly what I needed.
    Cheers
    Laura

  • Using forms 6i, to import excel data to database not a valid month problem

    Hi all,
    i am fetching data from excel dynamically to oracle table, all data is of general type
    here i am passing value V3 varchar2(100) but actual database column field is DATE.
    my insert code is given below
    [code]
    PACKAGE BODY PK_EXCEL_TO_DB IS
    PROCEDURE PR_DO_INSERT(i_vcColumn1 IN VARCHAR2,i_vcColumn2 IN VARCHAR2,i_vcColumn3 IN VARCHAR2,i_vcColumn4 IN VARCHAR2,i_vcColumn5 IN VARCHAR2,i_vcColumn6 IN VARCHAR2,i_vcColumn7 IN VARCHAR2,
      i_vcColumn8 IN VARCHAR2,i_vcColumn9 IN VARCHAR2,i_vcColumn10 IN VARCHAR2,i_vcColumn11 IN VARCHAR2,i_vcColumn12 IN VARCHAR2,i_vcColumn13 IN VARCHAR2,i_vcColumn14 IN VARCHAR2,
      i_vcColumn15 IN VARCHAR2,i_vcColumn16 IN VARCHAR2,i_vcColumn17 IN VARCHAR2,i_vcColumn18 IN VARCHAR2,i_vcColumn19 IN VARCHAR2,i_vcColumn20 IN VARCHAR2,i_vcColumn21 IN VARCHAR2,
      i_vcColumn22 IN VARCHAR2,i_vcColumn23 IN VARCHAR2,i_vcColumn24 IN VARCHAR2,i_vcColumn25 IN VARCHAR2,i_vcColumn26 IN VARCHAR2,i_vcColumn27 IN VARCHAR2,i_vcColumn28 IN VARCHAR2,
      i_vcColumn29 IN VARCHAR2,i_vcColumn30 IN VARCHAR2,i_vcColumn31 IN VARCHAR2,i_vcColumn32 IN VARCHAR2,i_vcColumn33 IN VARCHAR2,i_lData IN tDataList) IS
        vcInsert   VARCHAR2(3500);
        i INTEGER:=0;
        flag boolean:= FALSE;
      BEGIN
        i:=i_lData.COUNT;
        :BLK_MAIN.T4:= vcInsert;
        vcInsert:='INSERT INTO CRM_DELT_IMPORT (';
        if length(i_vcColumn1) > 0 then
        flag:=TRUE;
        vcInsert:=vcInsert||i_vcColumn1;
        end if;
        if length(i_vcColumn2)  > 0 then
          IF flag THEN
          vcInsert:=vcInsert|| ','||i_vcColumn2;
          else
          vcInsert:=vcInsert||i_vcColumn2;
          end if;
        end if;
        if length(i_vcColumn3) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn3;
        end if;
        if length(i_vcColumn4) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn4;
        end if;
        if length(i_vcColumn5) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn5;
        end if;
        if length(i_vcColumn6) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn6;
        end if;
        if length(i_vcColumn7) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn7;
        end if;
        if length(i_vcColumn8) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn8;
        end if;
        if length(i_vcColumn9) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn9;
        end if;
        if length(i_vcColumn10) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn10;
        end if;
        if length(i_vcColumn11) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn11;
        end if;
        if length(i_vcColumn12) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn12;
        end if;
        if length(i_vcColumn13) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn13;
        end if;
        if length(i_vcColumn14) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn14;
        end if;
        if length(i_vcColumn15) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn15;
        end if;
        if length(i_vcColumn16) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn16;
        end if;
           if length(i_vcColumn17) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn17;
           end if;
           if length(i_vcColumn18) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn18;
           end if;
           if length(i_vcColumn19) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn19;
           end if;
            if length(i_vcColumn20) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn20;
            end if;
           if length(i_vcColumn21) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn21;
            end if;
           if length(i_vcColumn22) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn22;
           end if;
           if length(i_vcColumn23) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn23;
            end if;
           if length(i_vcColumn24) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn24;
            end if;
           if length(i_vcColumn25) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn25;
            end if;
           if length(i_vcColumn26) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn26;
            end if;
            if length(i_vcColumn27) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn27;
             end if;
            if length(i_vcColumn28) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn28;
            end if;
            if length(i_vcColumn29) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn29;
            end if;
            if length(i_vcColumn30) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn30;
            end if;
            if length(i_vcColumn31) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn31;
            end if;
            if length(i_vcColumn32) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn32;
            end if;
            if length(i_vcColumn33) > 0 then
        vcInsert:=vcInsert|| ','||i_vcColumn33;
        end if;      
        vcInsert:=vcInsert||') values(';
        if length(i_vcColumn1) > 0 then
        vcInsert:=vcInsert||''''||i_ldata(i).V1||'''';
        end if;
        if length(i_vcColumn2) > 0 then
        IF flag THEN
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V2||'''';
        else
        vcInsert:=vcInsert|| ''''||i_ldata(i).V2||'''';
        end if;
        end if;
        if length(i_vcColumn3) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V3||'''';
        --vcInsert:=vcInsert|| ','||''''||to_date(to_date(i_ldata(i).V3,'dd-mon-yy HH12:MI:SS'),'dd-mon-yy HH12:MI:SS')||'''';
        -- vcInsert:=vcInsert|| ','||''''|| to_date('i_ldata(i).V3','dd-mon-yy HH12:MI:SS')||''''; --to_date('18-JUN-2013 12:00:00', 'DD-MON-YYYY HH24:MI:SS')
        end if;
        if length(i_vcColumn4) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V4||'''';
        end if;
        if length(i_vcColumn5) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V5||'''';
        end if;
        if length(i_vcColumn6) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V6||'''';
        end if;
        if length(i_vcColumn7) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V7||'''';
        end if;
        if length(i_vcColumn8) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V8||'''';
        end if;
        if length(i_vcColumn9) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V9||'''';
        end if;
        if length(i_vcColumn10) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V10||'''';
        end if;
        if length(i_vcColumn11) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V11||'''';
        end if;
        if length(i_vcColumn12) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V12||'''';
        end if;
        if length(i_vcColumn13) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V13||'''';
        end if;
        if length(i_vcColumn14) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V14||'''';
        end if;
        if length(i_vcColumn15) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V15||'''';
        end if;
        if length(i_vcColumn16) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V16||'''';
        end if;
        if length(i_vcColumn17) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V17||'''';
        end if;
        if length(i_vcColumn18) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V18||'''';
        end if;
        if length(i_vcColumn19) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V19||'''';
        end if;
        if length(i_vcColumn20) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V20||'''';
        end if;
        if length(i_vcColumn21) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V21||'''';
        end if;
        if length(i_vcColumn22) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V22||'''';
        end if;
        if length(i_vcColumn23) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V23||'''';
        end if;
        if length(i_vcColumn24) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V24||'''';
        end if;
        if length(i_vcColumn25) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V25||'''';
        end if;
        if length(i_vcColumn26) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V26||'''';
        end if;
        if length(i_vcColumn27) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V27||'''';
        end if;
        if length(i_vcColumn28) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V28||'''';
        end if;  
        if length(i_vcColumn29) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V29||'''';
        end if;
        if length(i_vcColumn30) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V30||'''';
        end if;
        if length(i_vcColumn31) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V31||'''';
        end if;
        if length(i_vcColumn32) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V32||'''';
        end if;
        if length(i_vcColumn33) > 0 then
        vcInsert:=vcInsert|| ','||''''||i_ldata(i).V33||'''';
        end if;
        vcInsert:=vcInsert||')';
         FORMS_DDL(vcInsert);
         :BLK_MAIN.T4:= vcInsert;
       --END LOOP;
        STANDARD.COMMIT;
      END;
    END;
    [/code]
    How can i pass '13-06-13 05:54:33' to database table.
    if i put condition
    vcInsert:=vcInsert||','||''''||TO_CHAR('i_ldata(i).V3','DD-MON-RR HH12:MI:SS')||''''
    i get the error
    to_char many declaration..
    if i remove this i got error
    ORA-01843: no a valid month
    Since i am dynamically importing the excel data, every time the position of the date fild is going to change. For static its ok that i know that V3 is going to be a date.
    But for dynamic date may be  at position V22 or at any place.
    please suggest something.
    Regards
    Sam

    hii Marwin
    Thanks for the reply. Yes i understand what exactly you are saying.
    That's why i have created a test table. All fields in the table are of varchar2 type and no constraints were given to the table and import the data to test table.
    Once the data is imported to test table, then i am inserting data to my original table i.e CRM_DELT_IMPORT. I have written the following code for that.
    But when i press the button i got the error
    FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-00001
    my CRM_DELT_IMPORT have composit key on ("ROUTE_ID", "DELDATE", "DELSNO", "PROFILE_ID")
    I also inserted few records with normal insert on SQL prompt , records gets inserted in to the table.
    But when i use the form for insert and click on button of insert i get the error.
    I also check that records gets imported in test table but not get inserted into CRM_DELT_IMPORT table (with the help of form. )
    (can i use IGNORE_ROW_ON_DUPKEY_INDEX here? and how?)
    Please help me in this problem.
    Thanks again.
    Regards
    Sam
    My code on when-button-pressed is
    DECLARE
      CURSOR IMP IS
      SELECT ROUTE_ID, to_date(DELDATE,'DD-MM-RR HH24:MI:SS')DELDATE, DELSNO, DEL_BOY,
      PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY, EXP_TIME, ACT_FR,
      ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
      DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE,
      TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS')DEVICE_DATE, substr(DEV_TIME,12,19)DEVICE_TIME
      FROM TEST;
      IMP_REC IMP%ROWTYPE;
    BEGIN
      OPEN IMP;
      FETCH IMP INTO IMP_REC;
      WHILE IMP%FOUND
      LOOP
      INSERT INTO CRM_DELT_IMPORT(ROUTE_ID, DELDATE, DELSNO, DEL_BOY, PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY,
      EXP_TIME, ACT_FR, ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
      DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE, DEV_DATE, DEV_TIME)
        VALUES(IMP_REC.ROUTE_ID, IMP_REC.DELDATE, IMP_REC.DELSNO, IMP_REC.DEL_BOY, --to_date(DELDATE,'DD-MM-RR HH24:MI:SS')
      IMP_REC.PROFILE_ID, IMP_REC.TRNTYPE, IMP_REC.RECNO, IMP_REC.EXP_FR,IMP_REC.EXP_PA,IMP_REC.EXP_SK,IMP_REC.EXP_EMPTY,IMP_REC.EXP_TIME,IMP_REC.ACT_FR,
      IMP_REC.ACT_PA,IMP_REC.ACT_SK,IMP_REC.ACT_EMPTY,IMP_REC.ACT_TIME,IMP_REC.LATITUDE,IMP_REC.LONGITUDE,IMP_REC.IS_FREE,IMP_REC.RATE_LITER,IMP_REC.AMT_DEBIT,
      IMP_REC.DEVICE_ID,IMP_REC.PROF_NAME,IMP_REC.ADDR1,IMP_REC.ADDR2,IMP_REC.LANDMARK,IMP_REC.PLAN_ID,IMP_REC.DEL_MODE,IMP_REC.NEW_CHANGE,IMP_REC.NO_DEL_CODE,
        IMP_REC.DEVICE_DATE,IMP_REC.DEVICE_TIME); ---TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS'), substr(DEV_TIME,12,19)
      END LOOP;
      COMMIT;
      CLOSE IMP;
    END;

  • Cannot import Excel dates

    I am using Oracle SQL Developer v1.2.1 and I'm trying to import an Excel file that contains date values formatted as 21-Sep-2007 11:29:45. During the import process, Data Preview shows that the date columns have values such as 39282.8. I have tried setting the Format on the Data Types tab and nothing is working. When I try import the file the following error messages are being displayed "Error at line 1:insert into EMMA_DB_PUSH_REPORT (MNTC_EVENT_ID,TKT_NBR,SCHED_COND_CD,NOTIFY_INDCR_CD,EVENT_DESC,OPEN_DT,START_DT,STOP_DT,SUBMIT_DT) VALUES(11848740186780000000000,3890.1,'SCHED','Y','APPROVED A SECOND TIME TO RE-GENERATE E-MAIL NOTIFICATION TO TSA SCHEDULED MAINTENANCE',TO_DATE('39282.8','DD-MON-YYYY HH:MI:SS'),TO_DATE('39347.6','DD-MON-YYYY HH:MI:SS'),TO_DATE('39348','DD-MON-YYYY HH:MI:SS'),TO_DATE('39346.4789930556','DD-MON-YYYY HH:MI:SS'))...SQL Error:ORA-01847: day of month must be between 1 and last day of month". Any suggestions would be greatly appreciated.

    Barry - The only way that I could import a date is if it was formatted as MM/DD/YYYY in Excel.

  • Importing Excel data

    I'm trying to import a bunch of names, phone numbers, etc. into an InDesign file from an Excel file. When I import the data, it comes in as a table. How do I get it to come in as tab-deliniated text? i.e., basically, I want the name in the first column, the phone number in the second column... etc. But I don't want that information in actual cells. Just in text columns. Thanks!
    julie
    PS I'm using InDesign CC on an iMac.

    Thanks so much! I tried converting the table to text, but that option was not available to me in Indesign. I see it... but it's grayed out. So I tried saving the Excel file as tab deliminated text. This works, but it imports tons of extra tabs. So I have to go in and delete thousands of tabs. Is there a way to just save the data as text (as opposed to the entire spreadsheet... including the blank cells...which is what I think it's doing)?

Maybe you are looking for

  • How can I remove backups on the backup disk by date

    I want to save some room on my Time Machine drive. Time Machine keeps weekly backups endlessly. What I want to do is for longer ago, I only want a monthly backup. I know these backups are just hard links if nothing has changed, but removing older bac

  • Print Preview with in the browsers

    Is it possible that we view the pdf Print with in the browsers instead of a seprate file. If yes how?

  • NoteBook speakers rare Problem

    hi all, my problem is that i cant listen music for the speakers of the laptop, sound only work with the jack plugged but strangely when i use for example skype who take the jack interface , the music start to sound in the speaker, i try all diferent

  • Budget in SAP-PS

    Hi! Can any one explain the Budget utilization in SAP-PS. Bekele

  • Query for Approvals on Documents series based.

    Hi Experts, SAP B1 8.81 I am Using the Purchase Quotation for the Purchase Requisition, like i  created a seperate Series as "PUR_REQ" for purchase requisition  documents . Here i want to give the approvals for the "PUR_REQ" series only in the purcha