SSIS Excel data load Error : DTS_E_OLEDB_NOPROVIDER_ERROR

Actual Error  :  In one of our new requirement we need to pull data from Excel file and load it in to Sql server table . The Package worked fine when it ran on my machine but when we  deployed the package into development  server and try to run it failed with fallowing error

Description: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR.
The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered.
Error code: 0x00000000.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154
Description: "Class not registered".

Root Cause  :
On further analysis I discovered that one will get the above mentioned error when Microsoft Office 2007 is not installed on the machine where SQL Server 2008 Integration Services is installed.
In order to import data from Microsoft Office Excel 2007 file formats such as .xls, .xlsx and .xlsb or from Microsoft Office Access 2007 file formats such as .mdb or .accdb files one needs install a set of components that can be used to facilitate transfer of data between 2007 Microsoft Office System files and non-Microsoft Office applications.

Resolution :
Instead of install Microsoft Office 2007 on the machine where SQL Server 2008 is installed you can simply go ahead and download 2007 Office System Driver: Data Connectivity Components file and then install the same on the server where SQL Server 2008 is running.

If you are trying to import data from Microsoft Office Excel 2010 file formats or from Microsoft Office Access 2010 file formats then one need to install a set of components that can be used to facilitate transfer of data between 2010 Microsoft Office System files and non-Microsoft Office applications. Instead of install Microsoft Office 2010 on the machine where SQL Server 2008 or SQL Server 2008 R2 is installed you can simply go ahead and download Microsoft Access Database Engine 2010 Redistributable file and then install the same on the server where SQL Server 2008 or SQL Server 2008 R2 is running. 

Comments

Post a Comment

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces