Cannot connect to Excel SSIS - excel

I'm trying to create a data flow task which brings data from Excel File to SQL table. I'm doing it in SQL Server Data Tools for Visual Studio 2012 as an SSIS package.
However, when I run the task I receive below error:
[Excel Source [52]] Error: SSIS Error Code
DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager "Excel
Connection Manager" failed with error code 0xC0209303. There may be
error messages posted before this with more information on why the
AcquireConnection method call failed.
Would you be able help please?
Thank you
Complete Error message:
SSIS package "C:\Users\adm.turpan\Documents\Visual Studio
2012\Projects\Integration Services Project1\Integration Services
Project1\project.dtsx" starting. Information: 0x4004300A at Excel as
source, SSIS.Pipeline: Validation phase is beginning. Error:
0xC020801C at Excel as source, Excel Source [52]: SSIS Error Code
DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager "Excel
Connection Manager" failed with error code 0xC0209303. There may be
error messages posted before this with more information on why the
AcquireConnection method call failed. Error: 0xC0047017 at Excel as
source, SSIS.Pipeline: Excel Source failed validation and returned
error code 0xC020801C. Error: 0xC004700C at Excel as source,
SSIS.Pipeline: One or more component failed validation. Error:
0xC0024107 at Excel as source: There were errors during task
validation. SSIS package "C:\Users\adm.turpan\Documents\Visual Studio
2012\Projects\Integration Services Project1\Integration Services
Project1\project.dtsx" finished: Success.

mehtat_90 was right. you need to set run64BitRuntime to False. See below where to find it:
Project -> Properities ->

for whom, the above answers didn't work, also try this. Some times when the file is open, it creates a temp/hidden file in the same location and it is only visible to the one who opened it. So place a break point right before the load and check the value for "FileName" which is being passed. The temp/hidden files would be in thumb.db for excel and different for different file formats. Hope this helps for someone.

You should run sql job in 32 bit therefore you should select 32-bit runtime checkbox in the configuration of SSIS Job.
http://microsoft-ssis.blogspot.com/2012/09/swtich-package-from-64bit-to-32bit.html#:~:text=Right%20Click%20the%20SSIS%20project,and%20select%20false%20under%20Run64bitRuntime.&text=Edit%20your%20job%20and%20then,%22Use%2032%20bit%20runtime%22

Related

validation error when project parameter sensitive property is set to true in SSIS 2012

I am using SSIS 2012 and deploying projects via project deployment model. I have 3 project connection managers and passing the password information to the connection manager through a project parameter. When I set the Sensitive property of password parameter to False the package runs fine but when I set it to true it gives the below error :
Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "ConnManager" failed with error code 0xC0202009
It is erroring because you are trying to touch a Parameter that is marked as Sensitive. You cannot use the "old" approach for configuring connection managers. For the project deployment model and Connection managers, in the SSISDB, you right click on the project and select Configure.
There is where you overlay a password.
Otherwise, you then need to use the GetSensitiveValue method to access the value instead of the standard Getter property.
Dts.Variables["$Package::FtpPassword"].GetSensitiveValue().ToString();
See Matt's article Retrieving the Value of a Sensitive Parameter in a Script

Issue after deploying SSRS report that pulls data from an Excel data source to the Report Server

I am trying to deploy an SSRS report that is using an Excel data source. This report shows up fine on BIDS when I preview it.
I then tried to deploy it to the Report Server and that worked fine except that when I click on the report I get the following error:
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'Excel_64'. (rsErrorOpeningConnection)
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection
I have looked online and tried a bunch of different solutions ranging from sharing the workbook, trying to input Windows Credentials in the report server in the "Credentials stored securely in the report server" field but that also gave me the same error.
I would really appreciate any help in resolving this.
Thank you.
Did you try removing the Trusted_Connection attribute from the connection string?
Does that server have all necessary components installed to retrieve data from a Excel sheet? I seem to remember that in older versions you needed Data Access Componets(DACS) or Excel itself installed on the server from which the Excelfile is read.
SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?
But I think you would be better of with the solution proposed in the link below.
It suggests importing the data into a SQL table using a scheduled SSIS package.
SSRS: Error while querying data from an Excel file (through ODBC)

An error occurred while loading the model for the item or data source 'EntityDataSource'

I use SQL Server 2012 SP1 U8 and SharePoint 2013.
I confiugure Excel Service and Performance Point Service and PowerPivot Service and ...
I create an Excel File that fetch data from DataWare House in PowerPivot report.
I load this file in Documents in my Share Point Web Site.
When I click on my excel file in SharePoint, I get this Error :
An error occurred while loading the model for the item or data source
'EntityDataSource'. Verify that the connection information is correct
and that you have permissions to access the data source.
<detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">
rsCannotRetrieveModel</ErrorCode><HttpStatus mlns=
"http://www.microsoft.com/sql/reportingservices">400</HttpStatus>
<Message xmlns="http://www.microsoft.com/sql/reportingservices">
An error occurred while loading the model for the item or data source
'EntityDataSource'. Verify that the connection information is correct and
that you have permissions to access the data source.</Message><HelpLink
xmlns="http://www.microsoft.com/sql/reportingservices">
http://go.microsoft.com/fwlink/?LinkId=20476&
EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&
EvtID=rsCannotRetrieveModel&ProdName=
Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3401.0
</HelpLink><ProductName xmlns="http://www.microsoft.com/sql/reportingservices">
Microsoft SQL Server Reporting Services</ProductName>
<ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3401.0
</ProductVersion><ProductLocaleId xmlns
="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId>
<OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">
OsIndependent</OperatingSystem><CountryLocaleId
xmlns="http://www.microsoft.com/sql/reportingservices">
1033</CountryLocaleId><MoreInformationxmlns=
"http://www.microsoft.com/sql/reportingservices">
<Source>ReportingServicesLibrary</Source>
<Message msrs:ErrorCode="rsCannotRetrieveModel"
msrs:HelpLink="http://go.microsoft.com/fwlink/?
LinkId=20476&EvtSrc=
Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID
=rsCannotRetrieveModel&ProdName=
Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3401.0"
xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred
while loading the model for the item or data source 'EntityDataSource'.
Verify that the connection information is correct and that you have
permissions to access the data source.</Message><MoreInformation>
<Source>Microsoft.ReportingServices.ProcessingCore</Source><Message
msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink=
"http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=
Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&
EvtID=rsErrorOpeningConnection&ProdName=
Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.3401.0"
xmlns:msrs="http://www.microsoft.com/sql/reportingservices">
Cannot create a connection to data source 'EntityDataSource'.
</Message><MoreInformation><Source>
Microsoft.AnalysisServices.SPClient</Source><Message>
We cannot locate a server to load the workbook Data Model.</Message>
<MoreInformation><Source></Source><Message>
We cannot locate a server to load the workbook Data Model.</Message>
<MoreInformation><Source>Microsoft.Office.Excel.Server.WebServices
</Source><Message>We cannot locate a server to load the workbook Data Model.
</Message></MoreInformation></MoreInformation>
</MoreInformation></MoreInformation>
</MoreInformation>
<Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
I see this Power View Fails to Connect link and do this answer but it not work for me?
and this Link PowerView Error: An error occurred while loading the model
Note : I can see all excel report that have not PowerPivot component.

Loading Excel sources to sql server table issues when I close my Excel sources

While I am trying to load Excel sources data into a SQL Server Table, it is throwing the following error...but when I opened all the sources that I am going to load into the destination then my SSIS package is successfully loading to destination. So here Execution fails when all my sources if not opened. Can any one of you resolve my problem?
TITLE: Package Validation Error
Package Validation Error
ADDITIONAL INFORMATION:
Error at Data Flow Task [Excel Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.
;There may be error messages posted before this with more information on why the AcquireConnection method call failed.Error at Data Flow Task [SSIS.Pipeline]:
component "Excel Source" (1) failed validation and returned error code 0xC020801C.Error at Data Flow Task [SSIS.Pipeline]:
One or more component failed validation.Error at Data Flow Task:
There were errors during task validation:
Error at Eco P and L [Connection manager "Excel Connection Manager"]:
SSIS Error Code DTS_E_OLEDBERROR. ;
An OLE DB error has occurred.
Error code: 0x80004005.
An OLE DB record is available. ;
Source: "Microsoft JET Database Engine" ;
Hresult: 0x80004005 ;
Description: "Could not decrypt file.".;
(Microsoft.DataTransformationServices.VsIntegration)
I got this error too. It turns out my excel file was protected. If I go to the "Review" tab and click on "Unprotect Sheet", then I could import the excel file.
From the error snapshot it clear that either file is encrypted or delay validation =false.
So please make sure that excel file should not be encrypted and Set Delay Validation= True .
I think you will not find this error again .

Error exporting SQL Server 2008 R2 database to Excel 2007

I was trying to export SQL Server 2008 R2 database to Excel 2007. I used the export wizard in SQL Server Management Studio. I used a query to export some columns of a table. I checked the query (saw the result of parsing it) and it was good. But on the REVIEW DATA TYPE MAPPING it showed error notifications. It was converting varchar to LongText. But when I executed the package it failed to run showing fail status for steps like prepare for execute,pre-execute,execute . the error message is like this
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE Query (
id Long, sku LongText..." failed with the following error: "Unexpected error from external database driver (1309).". Possible failure
reasons: Problems with the query, "ResultSet" property not set
correctly, parameters not set correctly, or connection not established
correctly.
(SQL Server Import and Export Wizard)
Someone has a clue whats wrong?
Not an ideal answer (I have no idea what the cause of this problem is) but I was able to bypass this error by saving the excel sheet to 97-03 format and extracting to that.

Resources