Solved

ConnectionManagerType = Excel with dynamic connection string

Posted on 2012-03-26
4
548 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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

820 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