Error while importing data from excel to forms

Hi,
I am working on Oracle forms 10g, and I'm supposed to import data from excel sheet to forms.
While the user enters the data,sometimes after entering a particular word he/she hits the alt+enter button.
As a result the data appears in two lines in a single row
So,when I try to import the data it's not importing the data in a right manner.
S0,I want to replace this linefeed and carry with five spaces.
Eg:The user instead of entering Geekpedia enters Geek
pedia
in the excel sheet.
Now when I import this in the forms I want it to be imported as Geek Pedia.(5 spaces between Geek and pedia).

Maybe you can consider save excel as .csv files and then you can load them as flatfiles to external table in OWB.

Similar Messages

  • Error while importing data from XML file to a Oracle database

    I am getting the following error while importing data
    *** atg.xml.XMLFileException: No XML files were found for "/Dynamusic/config/dynamusic/songs-data.xml". 
    The files must be located  under the name "/Dynamusic/config/dyna
    *** java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
    java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:120)
            at atg.adapter.gsa.xml.TemplateParser.importFiles(TemplateParser.java:6675)
            at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5795)
            at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5241)
    I have placed the FakeXADataSource and JTDataSource properties files as required. In fact I have been able to import data in all machines. Just this one machine is giving problems. I have also checked out the access rights. Can someone help me please?

    Confirm that you have access to D:\MyApp\ATG\ATG10.0.3 and existence of Dynamusic/config/dynamusic/songs-data.xm

  • Giving dynamic sheet name while importing data from Excel in OPENROWSET query

    I want to import data from Excel to table in SQL server. Sheets in Excel file can have any name. I want to get data from first sheet of the excel file. 
    CREATE PROC CopyExcelDataToTempTable
    @ExcelPath VARCHAR(1000)
    AS
    BEGIN
    EXEC sp_configure 'show advanced options', 1;
    RECONFIGURE;
    EXEC sp_configure 'ad hoc distributed queries', 1;
    RECONFIGURE;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1;
    INSERT INTO TempData
    SELECT *
    FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
    SELECT CONCAT('Excel 12.0 Xml;HDR=YES;Database=', @ExcelPath),
    'SELECT * FROM [Sheet1$]');
    END;
    Currently I am giving Sheet1 as static name in Select statement. But my sheet name is not fixed. I want to create a dynamic query. If getting Sheet name is not possible then can we put sheet with its index in Select query? There is no front end. Whatever I
    want to do is in SQL server 2012. Is there any solution for this problem?

    Hi Ajinkya,
    To get the sheet names from an excel, you can use the Stored Procedure
    SP_TABLES_EX. See the below code.
    EXEC sp_addlinkedserver 'ExcelSource', '',
    'Microsoft.ACE.OLEDB.12.0',
    'c:\worksheet.xls',
    NULL,
    'Excel 8.0'
    EXEC sp_addlinkedsrvlogin 'ExcelSource', 'false'
    GO
    EXECUTE SP_TABLES_EX 'ExcelSource'
    the names in the worksheet.xls and execute result are like below.
    Table name
    a
    b
    c
    d
    Regarding your description, you need the first sheet of your excel. As the result shows, the sheet names are sorted, so there’s no guarantee to get the first one. The SP can work as a workaround when there’s only one sheet in your excel or the required sheet’s
    name is customized to be sorted at the top first.
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang

  • Error while importing data from 8i to 9i

    Hello !
    I have installed 9i and now want to import data from previous database 8i which contains GB's of data.
    I have exported through transporatble tablespaces but while importing to 9i i receive the following error of national character set .
    Import done in WE8MSWIN1252 character set and WE8ISO8859P1 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export client uses US7ASCII character set (possible charset conversion)
    export server uses US7ASCII NCHAR character set (possible ncharset conversion)
    IMP-00003: ORACLE error 2248 encountered
    ORA-02248: invalid option for ALTER SESSION
    IMP-00000: Import terminated unsuccessfully
    Can any one fix this problem
    Regards
    Shimak

    If you're moving data from 10G to 9i, using EXP/IMP, I would try using the 9i EXP to create the dumpfile with data from the 10G database, and then using the 9i IMP to import that dumpfile into the 9i database.
    Sounds like you have been using the 10G EXP and IMP in both cases.

  • Error while importing data from shape file in mapBuilder.

    Hi Dears,
    I get the following error while importing shape file from inside mapBuilder
    Feb 03, 2015 2:01:52 PM oracle.mapviewer.builder.wizard.shapefile.ImportShapefileThread importFile
    WARNING: java.sql.BatchUpdateException: Internal Error: Overflow Exception trying to bind NaN
    Record #51 not converted.
    Feb 03, 2015 2:01:52 PM oracle.mapviewer.builder.wizard.shapefile.ImportShapefileThread importFile
    SEVERE: Exception while importing shapefile [D:\GIS_Data\OpenStreetMap\pakistan-latest\waterways]:
    null
    any clue, solution. please.
    Regards.

    I would take a look at the attribute data associated with each object in your shape file.  Make sure that everything has a value, and that nothing is NULL.
    ID   VAR1
    1    abc
         efg   <= this record will cause Mapbuilder to error when importing
    2          <= this record will cause Mapbuilder to error when importing
    3    hij

  • Error while loading data from EXCEL to OWB

    Hi Marcos,
    Thank you. I got way.
    I did in the following steps...
    1. I created system dsn odbc_excel.
    2. I created initSID.ora
    3. I updated in the listener.ora.
    4. I created a soure module in odbc in owb.
    5. I created destination module in oracle where I want to load the data from excel.
    6. I am able to get the metadata of excel.
    7. I created a mapping.
    8. Validation and Generation phases completed successfully.
    9. At the time of deployment I got the following error.
    ORA-06550: line 16, column 22:
    PL/SQL: ORA-04052: error occurred when looking up remote object odbc_excel.EmployeeRange@EXCEL_SID.US.ORACLE.COM@CONNECTOR_EXCEL_OWB_SRC_DEST
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02019: connection description for remote database not found
    here
    --excel_sid is the service name given in listener.ora.
    --connector_excel_owb_src_dest is the connector from soruce to destination.
    --Employee range is sheet name of excel.
    I am fighting with this problem from past few days...
    Thanks and regards
    Gowtham
    Message was edited by:
    Gowtham Sen

    Maybe you can consider save excel as .csv files and then you can load them as flatfiles to external table in OWB.

  • ERROR while uploading data from EXCEl to sap using ALSM_EXCEL FUNCION MODULE

    Hi Experts,
    I am uploading excel data into sap suing function module ALSM_EXCEl_TO_INTERNAL_TABLE , used this funcion module in the program while running the program one blank excel sheet is opening and data is not uploading into internal table . even same blank sheet is opeining if we user
    CONVERT_EXCEL_TO_INTERNAL function module also.
    can you please tell me why this error is coming how to over come this error.
    My excel sheet data records are less then 10000.
    Thanks & regards
    kiran

    Hi Taranam,
    Use FM ALSM_EXCEL_TO_INTERNAL_TABLE.
    Regards,
    Atish

  • Error While Uploding data from Excel File

    I try to upload data directly from Xlfile to Internal table.I have used the foll function module
    ALSM_EXCEL_TO_INTERNAL_TABLE
    and it's working nicely when i run the program from R/3.
    My Question is ,if i access the same program from ITS ,no record is uploaded .
    Any help will be much appreciated .
    Rgds,
    J.

    Hi,
    try with this sample code.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                field_name = 'p_file'
           importing
                file_name  = p_file.
    start-of-selection.
      clear itab.
      call function 'WS_UPLOAD'
           exporting
                codepage                = ' '
                filename                = p_file
                filetype                = 'DAT'
           tables
                data_tab                = itab
           exceptions
                conversion_error        = 1
                file_open_error         = 2
                file_read_error         = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                others                  = 10.
      if sy-subrc ne 0.
        message e000 with text-e01.
        stop.
      endif.
    I hope it will work for you.
    Thanks.

  • Reg : Error While uploading Datas from EXCEL in to SAP

    Hi Experts,
                          Please help me with code inorder to upload EXCEL File DATA in to SAP.... I tried with FM : ALSM_EXCEL_TO_INTERNAL_TABLE   &   TEXT_CONVERT_XLS_TO_SAP but exception raised like  UPLOAD_OLE for me..
    Wat to do...?
    Please help with exact data (EXCEL) and code...
    regards
    e arthi

    Hi arthi
    save you file as CSV file in excel.
    that means your file will be coma separated,
    and then use fm
    GUI_UPLOAD.
    This will solve your problem.
    Regards,
    Vijay

  • Error while expoting data from excel sheet

    I get error message as *'1 error has occurred. The identified column name is an Oracle reserved word. Please choose another name'.
    The column names are :
    SYSTEM_APPLICATION
    SYSTEM_COMPONENT     
    STACK_RELEASE
    RAISED_DATE
    RELEASE_GO_LIVE_DATE
    FP
    DEFECTS_CATEGORY
    S1_NOGO
    S2_INTERRUPTION
    S3_VISIBLE
    S4_NOIMPACT
    Could you please guide me where the problem would be .....
    Regards,
    Manoj

    Hi Myvizhi ,
    Did you try running the query from back end that got generated in the error trace ? see if that query is returning desired
    output .
    Also would like to know if you are using oracle standard search mode i.e result based search / auto customization search ?
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Import data from excel/csv file in web dynpro

    Hi All,
    I need to populate a WD table by first importing a excel/CSV file thru web dynpro screen and then reading thru the file.Am using FileUpload element from NW04s.
    How can I read/import data from excel / csv file in web dynpro table context?
    Any help is appreciated.
    Thanks a lot
    Aakash

    Hi,
    Here are the basic steps needed to read data from excel spreadsheet using the Java Excel API(jExcel API).
    jExcel API can read a spreadsheet from a file stored on the local file system or from some input stream, ideally the following should be the steps while reading:
    Create a workbook from a file on the local file system, as illustrated in the following code fragment:
              import java.io.File;
              import java.util.Date;
              import jxl.*;
             Workbook workbook = Workbook.getWorkbook(new File("test.xls"));
    On getting access to the worksheet, once can use the following code piece to access  individual sheets. These are zero indexed - the first sheet being 0, the  second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name).
              Sheet sheet = workbook.getSheet(0);
    After getting the sheet, you can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows
    Cell a1 = sheet.getCell(0,0);
    Cell b2 = sheet.getCell(1,1);
    Cell c2 = sheet.getCell(2,1);
    String a1 = a1.getContents();
    String b2 = b2.getContents();
    String c2 = c2.getContents();
    // perform operations on strings
    However in case we need to access the cell's contents as the exact data type ie. as a numerical value or as a date, then the retrieved Cell must be cast to the correct type and the appropriate methods called. The code piece given below illustrates how JExcelApi may be used to retrieve a genuine java double and java.util.Date object from an Excel spreadsheet. For completeness the label is also cast to it's correct type. The code snippet also illustrates how to verify that cell is of the expected type - this can be useful when performing validations on the spreadsheet for presence of correct datatypes in the spreadsheet.
      String a1 = null;
      Double b2 = 0;
      Date c2 = null;
                        Cell a1 = sheet.getCell(0,0);
                        Cell b2 = sheet.getCell(1,1);
                        Cell c2 = sheet.getCell(2,1);
                        if (a1.getType() == CellType.LABEL)
                           LabelCell lc = (LabelCell) a1;
                           stringa1 = lc.getString();
                         if (b2.getType() == CellType.NUMBER)
                           NumberCell nc = (NumberCell) b2;
                           numberb2 = nc.getValue();
                          if (c2.getType() == CellType.DATE)
                            DateCell dc = (DateCell) c2;
                            datec2 = dc.getDate();
                           // operate on dates and doubles
    It is recommended to, use the close()  method (as in the code piece below)   when you are done with processing all the cells.This frees up any allocated memory used when reading spreadsheets and is particularly important when reading large spreadsheets.              
              // Finished - close the workbook and free up memory
              workbook.close();
    The API class files are availble in the 'jxl.jar', which is available for download.
    Regards
    Raghu

  • Import data from excel file

    Hello.
    Is anybody can help how to import data from excel file to the form created with designer 7.0. Originally there is a script inside the form to populate drop down list and depending from data selected in the ID number drop down list, there will be filled out the description and the prices text fields. But now I have to modify this form with data from excel file, which has more than 30000 lines and put all this data to script is too much.
    So, can somebody know how can I after filling the ID number field , populate the description and price text fields with data from excel file corresponding to this ID number ?
    This form is used in Adobe reader.
    Any comments are welcome.
    Regards,
    Aivar

    Hi
    That's what i said in my prev. Post to clear cache... :)
    disable your cache from nqsconfig.ini
    In cache section of NQSConfig file,
    you find
    ENABLE     =     YES;
    set to NO
    OR
    if you are using data ware house as the source for OBIEE,
    you know that when ETL is done, so just create iBot to purge cache automatically at that particular intervals,
    So that report runs freshly at that time
    And what happened to your View Selector question?
    Edited by: Kishore Guggilla on Jul 3, 2009 3:52 PM

  • Import data from excel 2013 workbook issue,is it a bug ?

    When I use powerquery to import data from excel 2013 workbook An unexpected error occurred.Other editions no problem.

    I‘m sure this is a bug.I'm option in default language set to English.Saved the file and use powerquery import it.Excle worked fine.
    I'm option in default language set to simple chinese.Saved the file and use powerquery import it.An error occurred.

  • Importing data from Excel using SDK!

    Hi All,
    Can we do a Goods Receipt and Goods Issue via SDK.
    IF so any code available for the same!Secondly can we
    Import data from Excel using SDK!
    Thnx in advance

    Hi Vinayak
    4 your 2nd issue: you can easily use Excel.Application COM-object. In C# exporting from Excel can be:
    Excel.Application     oXL;
    Excel._Workbook     oWB;
    Excel._Worksheet     oSheet;
    string          strTemplatePath;
    strTemplatePath = Application.StartupPath + "WHRequestList.xlt";
    try
         oXL = new Excel.Application();
         oWB     = (Excel._Workbook)(oXL.Workbooks.Add(strTemplatePath));
         oSheet     = (Excel._Worksheet)oWB.ActiveSheet;
         SAPbouiCOM.Item     edDocNum;
         SAPbouiCOM.IEditText specEdDocNum;
         edDocNum = SBOApp.Forms.Item(FormUID).Items.Item("8");
         specEdDocNum = (SAPbouiCOM.IEditText)edDocNum.Specific;
         SAPbouiCOM.Item     edDocDate;
         SAPbouiCOM.IEditText specEdDocDate;
         edDocDate = SBOApp.Forms.Item(FormUID).Items.Item("10");
         specEdDocDate = (SAPbouiCOM.IEditText)edDocDate.Specific;
         oSheet.Cells[2, "F"] = "¹ " + specEdDocNum.String + " îò " + specEdDocDate.String;
         oXL.Visible = true;
         oXL.UserControl = true;
    BTW, don't forget to add Excel object in ProjectReferences
    For sure, importing  (reading) from Excel is the same
    HTH

Maybe you are looking for

  • How can I watch my apple TV on another tv?

    Can I use my apple TV to watch already downloaded tv series etc on another TV ie my friends, just my simply connecting it to their tv without an internet connection etc? Like and external hard-drive?

  • Is it a bug? Conditional request

    {color:#000000}Hi, I have a region button which submits with the request {color:#993366}APPLY_CHANGES{color} On this same page I have a {color:#993366}pl/sql{color} page process with a condition set to {color:#993366}Request is contained within Expre

  • Problem in UCCHECK  (*kna1 = Kna1)

    Hi All, 1) What is the meaning of  ABAP statement TABLES: *KNA1. 2) What will happen if i execute ABAP statement    *KNA1 = KNA1 3) In UCCHECK t-code system is giveing me error in an object which contains the above statements, the error message is "O

  • Developing a Website to be run from a DVD?

    I'm a newcomer to Dreamweaver though I have some experience with other web development tools. I've been asked to design an interactive DVD. Yes, I know Director is the preferred application but I don't want to learn Director for this single project.

  • What is SAP best practice for SU24 "no check" indicators

    Hi Experts, Let's say during testing if we find a t-code needs some authorization objects for end to end execution, and those objects are maintained as "CHECK" "NO" in USOBX_C. Please suggest the best practice... Should we change the proposal in USOB