Solved

ConnectionManagerType = Excel with dynamic connection string

Posted on 2012-03-26
4
538 Views
Last Modified: 2012-06-27
System environment Windows 7 Pro, 64 bit OS

I want to import data in xls file into a table in my SSIS package. I created a ssis ConnectionManagerType = Excel (WC_Crosswalk) and gave a dynamic connection string to connect to the xls file. The connection string is copied below:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ @[User::CrosswalkPath] +";Extended Properties=\"EXCEL 8.0;HDR=YES\";"

if the value of the CrosswalkPath = "S:\\Offload\\WC\\From Client\\Images\\WCNYE1.xls"
as copied from the watch window
I understand that the connection string would be:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=S:\Offload\\WC\From Client\Images\WCNYE1.xls;Extended Properties="EXCEL 8.0;HDR=YES";

When I run this package, my data flow task fails with the following error message:
[WellcareExcelsheet [89]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "WC_Crosswalk" failed with error code 0xC00F9304.  "


Where did I go wrong?
0
Comment
Question by:patd1
  • 3
4 Comments
 
LVL 16

Expert Comment

by:DcpKing
ID: 37769166
I've never had to set the connection string explicitly: try setting the Excel file name in the expression list  as @[User::CrosswalkPath] - the connection string usually takes care of itself after that.
0
 

Author Comment

by:patd1
ID: 37769197
I also tried setting the expression property "ExcelFilePath" to [User::CrosswalkPath] . I still get the same error.
0
 

Accepted Solution

by:
patd1 earned 0 total points
ID: 37769240
I changed the Run64BitRuntime value to False. Now it works.
http://www.bisql.net/2010/10/how-to-enable-32-bit-runtime-mode-in-ssis/
0
 

Author Closing Comment

by:patd1
ID: 37790470
Easy solution found using google.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now