SSIS 2008 R2 Excel Destination Error, "An OLE DB error has occurred. Error code: 0x80040E21.", cannot export to the new Excel (.xlsx) format

Hello.
I've been attempting to do a very simple task that just isn't working.  For a Data Flow Task action in SSIS, I am trying to export data from a single SQL Server (2008 R2) database table to an Excel spreadsheet (.xlsx).  No matter what I do, it
just keeps failing.  The columns in the table match the column header names (in the first row) in the tab I select.  Here is the output I get.
SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's
console.
Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Error: 0xC0202009 at Data Flow Task, Excel Destination [52]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
Error: 0xC0202025 at Data Flow Task, Excel Destination [52]: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "Excel Destination" (52) failed the pre-execute phase and returned error code 0xC0202025.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "Excel Destination" (52)" wrote 0 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Data Flow Task
SSIS package "Package.dtsx" finished: Success.
I kick-off the action and sometimes is hangs for a few seconds (20+ seconds) and sometimes it doesn't, but either way it fails.  I tried this on a 32-bit machine, 64-bit machine, and still it fails.  I tried an OLE DB connection to Excel and
that doesn't work either.  I made sure that the connection string for the Excel spreadsheet is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[filepath\excelfile].xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES"; and still it doesn't work.  
Now, when I switch it over to export to an Excel 2003 spreadsheet (.xls) it works!  But I don't want it to go to the old Excel spreadsheet format, my requirement is to export the data to the new format.  Is there a bug in the Access 2010 Database
Engine that won't allow me to export to the new Excel format?  Otherwise, what can I be doing wrong?  I set the Run64BitRuntime property to False and it still doesn't work.  
My solution (so far) is to export it to Excel 2003 and then via the Script Task action use the Excel COM API (Microsoft.Office.Interop.Excel.dll) for 2010, open the file and save it in the new format (.xlsx) and that works great!  However, the client
doesn't want to install Excel on the database server!  So what can I do when the Excel Destination or OLE DB Destination (to connect to Excel) actions don't work!?  Please help!!!
Like I mentioned, if this is a bug, that would be great to know so I can stop wasting my time.  Thanks again.

Alright, so you mean to say is that the driver is not installed.  Isn't version 12 the 2010 Access Database Engine Driver?  I did install that, and I also tried the 2007 Access DB Engine driver, and both don't work.  What driver am I missing? 
The connection string is correctly formatted, yes?
Also, when setting up the OLE DB Destination action and I have it point to the Excel spreadsheet, and I specify as the provider "Microsoft Office 12.0 Access Database Engine OLE DB Provider" and click on Test Connection, the connection is
successful.  Wouldn't that mean the 12.0 version driver is installed?
Thanks in advance.

Similar Messages

  • I'm getting an error code 499 since I installed the new windows explorer

    I'm getting an error code 499 since I installed the new windows explorer.  I changed the parental settings in explorer, but it's not solving anything.  Anybody have a solution?

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: Troubleshooting security software issues

  • Error code 3150 - Cannot find output destination. Need help to resolve

    I just installed a new router running DHCP and now I'm unable to reach my printer from all computers. The error code says "Cannot find output destination. Check the printer power connection, make sure the printer is switched on, and then try again.: -3150
    The printer is obviously powered on and connected to the LAN. There is an apparent IP address problem, however, I can ping the IP that seems to be loaded in the printer.
    I'm using Mac computers and I seem to have recurring IP issues with this printer.
    Thanks for any help.

    i am having the same issue as well.

  • OLEDB select from Analysis Services fails with error codes 0x80040E21 and 0xC0202009

    Hi,
    In IS2008 SP1, I have an OLEDB source component that uses an Analysis Services OLEDB connection to run an MDX statement (set in the "SQL command text" property). This already worked for other cubes with the same MDX statement (apart from different hierarchy
    and cube names) in several other IS packages.
    But in this package, I keep getting the following errors when executing:
    Error: 2011-12-08 14:12:42.70
       Code: 0xC0202009
       Source: myDataflow myOLEDBsource [190]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred.
     Error code: 0x80040E21.
    End Error
    Error: 2011-12-08 14:12:42.70
       Code: 0xC004701A
       Source: myDataflow SSIS.Pipeline
       Description: component "myOLEDBsource" (190) failed the pre-execute phase and returned error code 0xC0202009.
    End Error
    As usual with AS OLEDB, you get warnings for all columns that the data type is unknown and hence set to DT_WSTR(255). This is the case for the working packages and for the non-working one.
    And when I click on the "Preview" button in the OLEDB source, I see the three column two row resultset as expected.
    As I found some other posts with similar error messages that could be resolved by changing the 32 bit and 64 bit setting, I tried in BIDS 2008 (32 bit) on Vista 32 bit, dtexec 32 bit on the same computer, dtexec 64 bit and dtexec 64 bit on a Win2008 server,
    all with the same results.
    SQL Server Profiler shows that the MDX statement is executed without errors when running the package. I do not see any relevant difference between the working packages/cubes and those not working. I re-created the OLEDB source component several times, even
    copied it over from a working package, and still have no success.
    I even executed the statements in an XMLA sheet in Management Studio with the PropertyList taken from the trace, without seeing anything obvious in the result.
    Any ideas what I could do to get this working?
    Is there any reference explaining OLEDB error codes?
    Thanks
    Frank

    Hi,
    I finally got it working. Re-creating the connection manager solved the issue. There was no difference between the not working and the working connection in the Connection Manager Editor. When I compared on XML source level in the package, I found that the
    working version contained Format=Tabular in the connection string, while the not working version did not contain this.
    Frank

  • Error code: 2147778144 Cannot find the QE property.

    I have been working to get Coldfusion 8 and Crystal Enterprise 10 to work together.  The following were two approaches I knew of to try:
    1) using Crystal "unmanaged URL reporting":
    a href="AOC_Summary.rpt?prompt0=#variables.Record_Month#&prompt1=#variables.Fiscal_Year#&user0=userid&password0=pswdn">AOC SUMMARY</a>
    2) using  the Coldfusion <cfreport> tag:
    <cfreport report = "AOC_Summary.rpt"  
    dataSource = "#variables.dsn#"  
    username = "userid" 
    password = "pswd">
    {AB145_AMTS.REC_MONTH} = 5 and
    {AB145_AMTS.FISCAL_YEAR} = 8
    </cfreport>
    I got the CFREPORT tag to work but was disappointed to find that it only rendered the report in HTML.  The reports we have been producing with our current configuration of CF4.5 & CR 8.5 can be saved as PDF's.  So I abandoned the Coldfusion <cfreport> tag to see if I could get the Crystal "unmanaged URL reporting" to work.  This included me trying to find any documentation anywhere to guide me along with going into Crystal Admin and 'experimenting' to see if there was anything I needed to do there to make the unmanaged URL reporting work.
    Management is now telling me that producing the report in HTML is acceptable.  I am now trying to set up a demo for management.  When I went back into my CF code and uncommented the work I had done with the CFREPORT tag (which had been working at the time I commented it out), I receive the following error code.
    CrystalReport Integration Exception.
    Error code: 2147778144 Cannot find the QE property.
    Error source: Crystal Reports ActiveX Designer 
    I have tried searching the SAP site to find more information on this error message to no avail.   Any guidance would be greatly appreciated.
    Regards,
    :)mary
    Edited by: Mary Fowler on Aug 21, 2008 7:21 PM

    I found my mistake.  Used wrong .rpt file.  (head drooped, tail between the legs)
    Thank you for being here!
    :)mary

  • Error while generating CW kin for the new BG created for Taiwan

    HiAll,
    Please provide your help to resolve this issue,
    Iam getting error while generating CW kin for the new BG created for Taiwan, China.
    Error : Value TW is not a Valid context for the Descriptive Flexfield Person Developer DF.
    Please let me know, is there any step missed to create CW kins for new BG's.
    Thanks-
    Sowmya.
    Edited by: user13419037 on Jul 2, 2012 3:41 AM

    Hello ,
    Your solution can be solved by enabling the displayed check Box in Location Address DFF
    Thanks
    Bindu

  • I keep getting the message "An unknown error has occurred" when trying to sign in to the App Store. Why?

    I keep getting the message "An unknown error has occurred" when trying to sign in to the App Store. How do I solve this problem?

    Make sure you have the correct country selected. Click the round flag icon bottom right side of the App Store window.

  • TS1717 When I try and start iTunes after trying to intall the 11.4 update on my Windows 7 laptop, it says to reinstall iTunes and "Windows Error Code 193" I tried ave the same failed response. Can someone help?

    When I try and start iTunes after trying to intall the 11.4 update on my Windows 7 laptop, it says to reinstall iTunes and "Windows Error Code 193" I tried ave the same failed response. Can someone help?

    Hi inharmony35,
    If you are having issues with iTunes after an attempted update, you may want to try the steps in the following articles:
    Apple Support: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Apple Support: Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Regards,
    - Brenden

  • An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000)

    Hi,
    When i open my Password Reset portal then provide Username credentials in text box and click on next then asked the Securites Question Answers to me,i provide the correct Answers to the securites Question after this password reset portal asked
    me New Password and Confirm Password then click on next for resetting the password then gives below Error only for 2 Users. and all other users are working fine.
    An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000:)
    Regards
    Anil Kumar

    Anything in the event log?

  • Getting an error while configuring VMM for System Center 2012. error - An internal error has occurred trying to contact an agent on the WIN-NTJU8CNU server: : . Ensure the agent is installed and running.

    Hi,
    I am trying to install "System Center 2012 - Virtual Machine Manager by Using a Pre-Configured VHD".
    I downloaded install guide & the binaries from http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=10712
    I have followed the installation document & getting an error while configuring VMM for System Center 2012.
    error details from log file given below:
    01:12:24:VMMPostinstallProcessor threw an exception: Threw Exception.Type: Microsoft.Carmine.WSManWrappers.WSManProviderException, Exception.Message: An internal error has occurred trying to contact an agent on the WIN-NTJTNEJ1UCN.mydomain.com server: : .
    Ensure the agent is installed and running. Ensure the WS-Management service is installed and running, then restart the agent.
    01:12:24:StackTrace:   at Microsoft.Carmine.WSManWrappers.ErrorContextParameterHelper.ThrowTranslatedCarmineException(WsmanSoapFault fault, COMException ce)
       at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.RetrieveUnderlyingWMIErrorAndThrow(SessionCacheElement sessionElement, COMException ce)
       at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Invoke(String actionUri, WSManUri targetUri, Hashtable parameters, Type returnType, Boolean isCarmineMethod, Boolean forceResponseCast)
       at Microsoft.Carmine.WSManWrappers.AgentManagement.AssociateLibrary(WsmanAPIWrapper wsmanObject, String CertificateSubjectName, String& ExportedCertificate, ErrorInfo& ErrorInfo)
       at Microsoft.VirtualManager.Setup.VirtualMachineManagerHelpers.AssociateAgentServer(String fullyQualifiedServerName)
       at Microsoft.VirtualManager.Setup.VirtualMachineManagerHelpers.AssociateDefaultLibraryServer()
       at Microsoft.VirtualManager.Setup.VirtualMachineManagerHelpers.SetupLibraryShare()
       at Microsoft.VirtualManager.Setup.InstallItemCustomDelegates.PangaeaServerPostinstallProcessor()
    01:12:24:InnerException.Type: System.Runtime.InteropServices.COMException, InnerException.Message: There is a time and/or date difference between the client and server.
    01:12:24:InnerException.StackTrace:   at WSManAutomation.IWSManSession.Invoke(String actionUri, Object resourceUri, String parameters, Int32 flags)
       at Microsoft.Carmine.WSManWrappers.MyIWSManSession.Invoke(String actionUri, Object resourceUri, String parameters, Int32 flags)
       at Microsoft.Carmine.WSManWrappers.WsmanAPIWrapper.Invoke(String actionUri, WSManUri targetUri, Hashtable parameters, Type returnType, Boolean isCarmineMethod, Boolean forceResponseCast)
    01:12:24:ProcessInstalls: Running the PostProcessDelegate returned false.
    01:12:24:ProcessInstalls: Running the PostProcessDelegate for PangaeaServer failed.... This is a fatal item.  Setting rollback.
    01:12:24:SetProgressScreen: FinishMinorStep.
    01:12:24:ProcessInstalls: Rollback is set and we are not doing an uninstall so we will stop processing installs
    I have completed MSSQL server configuration and while configuring VMM the below error displayed in the wizard:
    An internal error has occurred trying to contact an agent on the WIN-NTJTNEJ1UCN.mydomain.com server: : .
    Ensure the agent is installed and running. Ensure the WS-Management service is installed and running, then restart the agent.
    I have checked that the following services are running:
    1) Verified WS-Management srvice 2) MSSQL server + MSSQL (agent)  3)SC VM Manager Agent  4)  Windows management instrumentation .
    I have joined the VM (on which installing SC VMM) in a domain(as per install guide) and installing VMM using domain account & it is in local Administrators group.
    Also I would like know if there is any stand alone SC VMM installer. If yes then please let me know the installer location & install guide.
    thanks.
    ====

    Have you installed AppController on the same machine with VMM?

  • Error message when trying to add signature. An error has occurred that may be fixed by installing the latest version of the Japanese Language Support package.

    Error message when trying to add signature. An error has occurred that may be fixed by installing the latest version of the Japanese Language Support package.  How can I fix this?
    Thanks
    [email protected]

    What is your operating system?  Reader version?

  • I purchased bioshock 2 on the app store on my macbook pro (running lion) and it shows 'an error has occured' every time I try to download the app. How do I install it properly, I have restarted my mac and reset the app on the debug menu?

    I purchased bioshock 2 on the app store on my macbook pro (running lion) and it shows 'an error has occured' every time I try to download the app. How do I install it properly, I have restarted my mac and reset the app on the debug menu?

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select "/var/log/install.log" from the file list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

    Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

    Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

  • I keep getting an error message when trying to download the new security software IOS 7.0.6?

    I keep getting an error message when trying to download the new security software IOS 7.0.6?

    what error message?

  • TS1702 when I want to install some application from apple store, I always got message " An unknown error has occurred" what should I do to install the application?

    when I want to install some application from apple store, I always got message " An unknown error has occurred" what should I do to install the application?

    I have the same problem. I need answers on how to fix this. any ideas?

Maybe you are looking for