The AcquireConnection method call failed with error code 0xC0202009.

I have a SQL Server Agent job with a step to execute an SSIS package. The package has as one of it's connection managers the Connection Manager For Excel Files. When I run the job it fails every time. I have implemented logging and in the OnError event it states "The AcquireConnection method call to the connection manager "LOBMappingExcel" failed with error code 0xC0202009".

Note that if I execute this package via dtexecui or dtexec it runs successfully. Only when I have the SQL server Agent Job run the package does this occur. What am I missing?

[557 byte] By [SteveWenck] at [2008-2-15]
# 1
What account does the SQL Agent job run under? Does that account have permissions to the file location where the excel file is?

-Euan

EuanGarden at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Tools General...
# 2
Hello Euan,

The account that SQL Agent is running under is a domain account and a member of the sysadmin role. I made sure this account has access to the spreadsheet in question by Terminal Servicing to the box - using these credentials - where the spreadsheet resides and opening it. This was successful.

I also ran dtexec from the command line using the "run as" feature using these credentials and the package executed fine.

It only fails with the "AcquireConnection method" error when I schedule the SSIS package to run via a SQL Agent job.

Thanks.

-Steve

SteveWenck at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Tools General...
# 3
Very weird, can you try posting in the Integration Services group to see if they have seen it?
EuanGarden at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Tools General...

SQL Server

Site Classified