Import xls file using SSIS

Hello All,
I am using Visual studio 2008 R2 and i have file which is in xls format.I tried to import the file but i am getting error like "external table is not in the expected format".I tried in different ways like use IMEX = 1 and debug property set 64bit
= false.
while importing i used 97-2003 in excel source .
My altered connection string is " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Computer\Mathew\MYFile.xls;Extended Properties="EXCEL 8.0;HDR=YES;IMEX = 1 ;MAXSCANROWS = 15;READONLY = FALSE";"
If i manually open the file and save as the same extension (97-2003) no issues for importing.But my file is dynamic and it picks everyday and use the data flow task to import xls from source ,getting the error which i mentioned above.
But still i am facing the same issue. Do anyone face this kind of issue before and please help me or suggest me to overcome this issue.
Thanks,
Mathew George

Hi Mathew,
The error "External table is not in the expected format" usually occurs because the format of the Excel file is not supported by the Excel driver, for example, it will occur if we try to connect to a .xlsx file using the Microsoft JET 4.0 OLE DB Provider.
Given the situation that the issue appears after you resave the Excel file as .xls, it seems the source .xls file is not the exact Excel 97-2003 format.
One possible solution is to use the Microsoft ACE 12.0 OLE DB Provider other than the Microsoft JET 4.0 OLE DB Provider. Besides, I saw that you encounterred the error "Could not find installed ISAM" when using the Microsoft ACE 12.0 OLE DB Provider.
This error may occur because of the extra space between Excel 12.0 and the following semi-colon in the Extended Properties. For example, "Excel 12.0 ;HDR=YES;" will cause this error, and we should use "Excel 12.0;HDR=YES;". Be sure to use the Excel 12.0 other
than Excel 8.0 extended property because the Excel 12.0 works with both .xls format file and .xlsx format file. Here is a screenshot for your reference:
Regards,
Mike Yin
TechNet Community Support

Similar Messages

  • How to import SAS .xpt file using SSIS

    Is it possible to read the .xpt file using ssis? What source driver I need to install?
    SSIS_User

    It seems, for SSAS there is a ODBC data provider available, which you maybe could use; see
    http://support.sas.com/documentation/cdl/en/odbcdref/63284/PDF/default/odbcdref.pdf
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to get Header in Downloaded .xls file using  GUI_Download function

    How to get Header in Downloaded .xls file using  GUI_Download function ???
    How to use the the Header parameter available in GUI_Download function .

    HI,
    see this sample code..
    data : Begin of t_header occurs 0,
           name(30) type c,
           end of t_header.
    data : Begin of itab occurs 0,
           fld1 type char10,
           fld2 type char10,
           fld3 type char10,
           end   of itab.
    DATA: v_pass_path TYPE string.
    append itab.
    itab-fld1 = 'Hi'.
    itab-fld2 = 'hello'.
    itab-fld3 = 'welcome'.
    append itab.
    append itab.
    append itab.
    append itab.
    append itab.
    t_header-name = 'Field1'.
    append t_header.
    t_header-name = 'Field2'.
    append t_header.
    t_header-name = 'Field3'.
    append t_header.
      CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
        EXPORTING
          default_extension     = 'XLS'
        IMPORTING
          fullpath              = v_pass_path.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_pass_path
          filetype                        = 'DBF'
        TABLES
          data_tab                        = itab
          FIELDNAMES                      = t_header
    Cheers,
    jose.

  • How to import xls file to BPA11gR1

    I got business flow from customer,one xml and one xls file.
    I imported xml file as following:
    New a database.
    Run BPA(11gR1) and open above database.
    Right-click on the group and select Evaluate/Start macro. The Macro Wizard opens.
    Select the "Import Process Generator table (XML)" macro in the Macros field and click on Next.
    Specify the output settings.
    Click on Finish. The Open dialog opens.
    Select the XML file and click on Open. The data is imported.
    I can not found ProcessGenerator import(EXCEL)" in the macro filed.
    so that I try to import xls file with above method,however I do not see any result.
    I would like to know if any of you could help me,thanks.
    Edited by: user780419 on Mar 5, 2012 9:02 PM
    Edited by: user780419 on Mar 5, 2012 9:14 PM

    step1:save the xls file as .csv format to your oracle dir path.
    step2:create external table using below command
    CREATE TABLE EXT_TABLE(+col1 datatype,col2 datatype.....+)
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER DEFAULT DIRECTORY directoryname
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    MISSING FIELD VALUES ARE NULL
    LOCATION('+filename.CSV+')
    REJECT LIMIT 0;

  • Export Chinise data in XLS file using toad

    Hii..
    I have one table which have chinise data
    All data is correct .
    I am exporting chinese data from Oracle table,I am facing problem
         I export data through toad in flat file
         and import it in XLS file using UTF character set .
    After importing all character gets converted to ???? marks.
    I cant see the data properly in the XLS file .
    my guess data base is not exporting file as unicode and hence charactger gets converted
    How I export data which I show correct data in chinise?

    Hi
    I am using 8.5 version of toad .I tried with sql developer also but no vail..
    can I set like this
    ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';
    ALTER SESSION SET NLS_TERRITORY='CHINA';
    ALTER SESSION SET NLS_CHARACTER_SET='AMERICAN_AMERICA.UTF8';
    and my NLS_LANG in windows for 10g client is AMERICAN_AMERICA.WE8MSWIN1252
    PLz suggest mi
    My NLS_SESSION_PARAMETERS in database are as follows
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE

  • How to read 835 files using ssis

    Hello Everyone,
    It is possible read 835 files using ssis.
    Please share your suggestions on this.
    Regards,
    Vaishu

    Hi Vaishu,
    None of the canned (standard) SSIS tasks let you do so.
    But if you can buy http://www.cozyroc.com/ssis/edi-source (I am not anyhow affiliated with CozyRoc) it states it can read ERA (AKA 835) files. CozyRoc lets you run it for free in Dev.
    If there will be a decision not to buy then you can simply crate a transformation out of several manipulations or by creating a custom SSIS component or some other programming methods need to be used.
    PS: Again, I just know CozyRoc quality of components is awesome, but I do not make any profit from referring to it.
    Arthur My Blog

  • Merge xls files using powershell

    is there any way to merge xls files using powershell ?

    What does "merge" mean?  Copy cells?  Copy Sheets?  Copy formulas?  Copy Data?
    "Merge"is way too vague.
    ¯\_(ツ)_/¯

  • Importing multiple files using the Import File menu.

    For some reason I am never able to add more the 5 mp3 files using the Import File menu. All of my files are located on the NAS device and if I select the Import Folder menu all the files in the folder will be imported. However, time after time I add more files to the same folder and then need to import just the new files to iTunes. For that I am using the Import File menu. If select more then 5 files, only 5 files will be imported. Some times I have 100 new files that I want to add, and moving 5 files a time is time consuming and painful. I try opening the folder, selecting all files and dropping them into iTunes, but that did not work. Is there a way to import more than 5 files at a time, or iTunes is not capable doing that?

    I am often surprised how many ways there are to add songs to iTunes. Selecting a number in the open file dialog must have a maximum string length for the file names. I bet that the path and file name are long on those songs and that is why you can only load 5 at a time from your NAS. What I have had luck with and is very easy is to select a group of songs and right click and "play" them. My iTunes is set to import and organize on play. The first song starts playing and they all load. I routinely do this with entire albums without problem.
    Paul

  • How to add specific header and footer to flat file using SSIS 2008

    The SSIS package need to create file  with headers, totals and adds a status to position one of the records.
    Header: "$$ADD ID=ENTK0557 BID='IA   HBZAC14HBZACHRYCORP' PASSWORD='CUSTOMER        ' %AU HBZAC14" is added.
    $$ADD = Static
    ID=ENTK0557 = Static
    BID='IA   HBZAC14HBZACHRYCORP' = "HBZAC14" is the company, "HBZACHRYCORP" is company name
    PASSWORD='CUSTOMER        '  = static
    HBZAC14 = company
    Control Totals:
    T010533343 000050 0002659604 000000 0000000000
    T = Totals
    010533343 = Account Number
    000050 = Total records
    0002659604 = Total checks
    000000 = TBD
    0000000000 = TBD
    Data for the file
    DECLARE
    @T AS
    TABLE
    [BR-ISSUE-VOID-IND] [char]
    (1)
    NULL,
    [BR-ACCT-NBR] [varchar]
    (9)
    NULL,
    [FILLER1] [char]
    (1)
    NULL,
    [BR-SERIAL-NBR] [varchar]
    (8000)
    NULL,
    [BR-CHECK-AMT] [varchar]
    (8000)
    NULL,
    [BR-CK-ISSUE-DATE] [varchar]
    (6)
    NULL
    INSERT
    INTO @T
    [BR-ISSUE-VOID-IND]
    [BR-ACCT-NBR]
    [FILLER1]
    [BR-SERIAL-NBR]
    [BR-CHECK-AMT]
    [BR-CK-ISSUE-DATE]
    SELECT
    'C'
    ,NULL,' ',30090072,2114.39,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30090190,430.58,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092371,589.93,100502
    UNION
    ALL
    SELECT
    'C'
    ,NULL,' ',30092550,1198.6,100502
    SELECT
    FROM @T
    File SnapShot.

    Using SSIS its difficult unless you use a script task after the data flow to add the header footer bits.
    A much better option in this case would be bcp as you can generate query with values in the order you want and bcp it out
    http://msdn.microsoft.com/en-us/library/ms162802.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can we combine multiple excel files into one excel file using SSIS?

    I have a bunch of excel files in a specified folder. I wanted to combine all the excel files into one excel file by adding additional tabs in one excel file. Can I do this using SSIS?
             OR
    I know using macro we can combine multiple excel files. Can we run a excel macro in SSIS? Please help me.
    Actually the complete package is this:
    Step1: Using FTP task I'm downloading the bunch of excel files into a folder.
    Step2: Above implementation is the second step that I have to do.  

    You can do it in two steps
    1. First get all data from excel sheets to a sql staging table. For that you need to use a looping logic as explained in below link (you dont required the additional logic used for checking file name etc in below example as you need all files). Also make
    source as excel instead of flat file
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    2. Once you get the data onto a single table, use below to get it exported to multiple sheets within same excel destination file
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to specify path to read E$ tab records into .xls file using odisqlunlod

    Hi
    Can any one help me how to specify specific path in odisqlunload tools which is useful for both windows and linux.
    I am developing and testing in windows and moving generated scenario into linux box to test for testing people
    If in case any error out records are populated in E$ table then how that records will populated on xls file, later I am sending that attachement for email notification to concern people
    Below code is present in odisqlunload tool
    OdiSqlUnload "-FILE=d:\ODI_Error_Out_Files\Notification_Error_Records.xls" "-DRIVER=oracle.jdbc.OracleDriver" "-URL=jdbc:oracle:thin:@10.75.114.146:1521:POCWCDS" "-USER=wcds" "-PASS=h2yXeih4hFlXXV,QaMeRR2Fy" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select * from E$_notification
    Please help how to make a single code which is useful and work on both windows and linux
    Any sugession willl help me
    Thanks in advance
    Regards,
    Phanikanth

    Hi Bhabani,
    I have written below code in KM itself and select technology as Java BeanShall
    Code:
    <@
    String OS = System.getProperty("os.name").toLowerCase();
    String v_path="";
    if((OS.indexOf("win") >= 0))
    v_path="D:\Unload_Dir\<%=snpRef.getSession("SESS_NO")%>.xlsx";
    else if (OS.indexOf("mac") >= 0)
    v_path="path details";
    else if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 )
    v_path="/odi_a/Middleware/logs/wcds/odi_logs/<%=snpRef.getSession("SESS_NO")%>.xlsx";
    else if (OS.indexOf("sunos") >= 0)
    v_path="soliaris path";
    @>
    OdiSqlUnload "-FILE=<@=v_path@>" "-DRIVER=<%=odiRef.getInfo("DEST_JAVA_DRIVER")%>" "-URL=<%=odiRef.getInfo("DEST_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("DEST_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("DEST_ENCODED_PASS")%>" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select * from <%=odiRef.getTable("L","ERR_NAME", "W")%>
    It was executed well and below is the Execution code of the above code
    Execution Code:
    <@
    String OS = System.getProperty("os.name").toLowerCase();
    String v_path="";
    if((OS.indexOf("win") >= 0))
    v_path="D:\Unload_Dir\1341360.xlsx";
    else if (OS.indexOf("mac") >= 0)
    v_path="path details";
    else if (OS.indexOf("nix") >= 0 || OS.indexOf("nux") >= 0 || OS.indexOf("aix") > 0 )
    v_path="/odi_a/Middleware/logs/wcds/odi_logs/1341360.xlsx";
    else if (OS.indexOf("sunos") >= 0)
    v_path="soliaris path";
    @>
    OdiSqlUnload "-FILE=<@=v_path@>" "-DRIVER=oracle.jdbc.OracleDriver" "-URL=jdbc:oracle:thin:@10.75.114.146:1521:POCWCDS" "-USER=wcds" "-PASS=<@=snpRef.getInfo("DEST_ENCODED_PASS") @>" "-FILE_FORMAT=VARIABLE" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select * from WCDS.E$_CDS_COMPANY
    Please confirm me if the above Code is correct or not, if Not, please correct it and DESC_ENCODE_PASS is not encoding the password
    Regards
    Phanikanth
    Edited by: Phanikanth on Feb 18, 2013 1:09 AM

  • Problem downloading .doc, .xls file using servlet

    i have a servlet which downloads the files to client(browser). It works file for .txt file but .doc, .xls files are opend but they contain garbage.
    plz letr me know if u know problem!!!!!
    -amit

    Probably because you output them using the Writer you got from getWriter instead of using the OutputStream you can get from getOutputStream.

  • Can't import excel file using Powerpivot Import Table Wizard

    I am new to the powerpivot in 2010 Excel.   I was trying to use the Powerpivot's import table wizard to import an Excel file into Powerpivot.  I was able to connect the target source file when I was in the wizard window testing the connection. 
    However, after I accepted to import the file and clicked finished, I couldn't see all the columns of the file were completely uploaded into the PowerPivot worksheet.  Also, the file has only 138 rows but it ends up over thousands row.  Can you please
    let me kow if this feature works at all or did I miss any steps?

    Hi MySueSue,
    Here are some tutorials about how to Import Excel Data into a PowerPivot Workbook.
    http://msdn.microsoft.com/en-us/library/gg399137(v=sql.110).aspx
    http://technet.microsoft.com/en-us/sqlserver/dn151367.aspx
    If there is anything I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • FDM Scripting Query for last imported source file using Batch Processing

    Hi Experts,
    I'm currently in the processing of automating the FDM load process on our version of FDM 9.3.3 using batch processing and the FDM Task Manager. Most of the process works fine including an email alert which notifies users of when a data load has taken place.
    As part of that email alert I am trying to attach the source file that has been loaded in batch processing. I have managed to get an attachment using the following FDM Script Object of:
    "API.MaintenanceMgr.fPartLastFile(strLoc, True, False)".
    But have noticed that using this only attaches the last "manually" imported file rather than the last file imported using the batch processing.
    My question is: Is it possible for someone to steer me into the right direction of either a more appropriate API or if I have missed a step in my script.
    Any help as always would be much appreciated.
    Cheers
    Pip

    Unfortunately the batch process does not work the same way as on-line. I am assuming you are using the normal batch load and not Multiload (although the batch is simisar).
    the batch file name gets recorded on the tBatchContents table, and moved to the import/batches folder under the folder for the current batch run. However, if successful the file gets deleted (and from memory does not get archived). To add the import file to the e-mail, after a successful load, i think you will need to store a copy of it prior to importing the file.

  • Is there a way to Import EPA file using SDM?

    Hi,
    is there another way to import EPA files in the portal NW04S?
    I do not have access to import in the system administration.
    Thanks
    Jean Seguin

    Never tried but, i think SDM does take SDA's also. nevertheless,
    import EPA into NWDS as a DC, deploy it to the server through NWDS.
    snap....i am sorry, its an EPA file. EPA file can be directly imported in the server and does not require to be through SDM.
    Go to Security Admin > Transport > Transport Packages > Import .... and follow the instructions there.
    use client / server based on where your EPA file is located. and upload and import.
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 7:04 PM
    Edited by: Nitin Mahajan on Jun 16, 2009 7:07 PM

Maybe you are looking for

  • How to unlock my iphone using different carrier

    how to unlock my iphone using different carrier? I Can't Unlock it using SMART carrier from the philippines

  • Google Play Store problem after updated to Android 4.0

    Hi Folks, Recently i have updated my Xperia Neo V with Android 4.0.Whenever i'm tryin to download any apps from google play store, it taking more time to start. After that i'm getting notification like "App Name" could not be downloaded due to an err

  • Can I use ENET-232 with Fieldpoint?

    I am using the Fieldpoint system with great results, but what I can do is limited by the fact that the FP-2015 has only one serial port. Can I use the ENET-232 with the Fieldpoint unit to increase the number of serial devices I have access to? Thanks

  • Download cs6 upgrade a second time?

    i want to reinstall my machine, can I download my cs6 upgrade a second time?

  • Oki C9300 / PPD Files / PostScript

    I have Leopard 10.5.2 and an Oki C9300. When using Adobe Photoshop CS3, Indesign CS3 or Acrobat Professional CS3 - I can not print files that contain postscript information (usually .EPS image files). I contacted OKIDATA and they sent me some PPD fil