[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

SSIS Job Won't Run with SQL Agent

I have created a SSIS job to transfer data from an Excel Spreadsheet to a SQL Server 2012 table.

When I run the package in Visual Studio, everything executes without a problem.

When I try running the job in SQL Server using SQL Agent, I get an error message to check the error Log. Nothing appears in the error log.

When I try running the job from a command prompt, I see the error as follows: "DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager DailyLogExcel" failed with error code 0xC0209303.

I have already set “Run64BitRuntime” property to false.

Any suggestions?
0
yonbret
Asked:
yonbret
  • 3
  • 2
1 Solution
 
Randy Knight, MCMCommented:
Does the SQL Server Agent Service Account have permissions to the Excel file?
0
 
yonbretAuthor Commented:
To rule out a permission error, I granted Modify permission to Everyone on the Excel spreadsheet.

Everyone should include the SQL Agent Account
0
 
Randy Knight, MCMCommented:
Log on to the server console using the SQL Agent Account and see if it can access the file.  That will tell you for sure if the permissions are working or not.
0
 
yonbretAuthor Commented:
I had to call Microsoft for resolution.

The problem was that when creating SSIS jobs there is a Project Data Source option. It makes Data Sources available for all packages in your project. In runs perfect in the SSIS developer software, however, when you move those SSIS packages to run using the SQL Server Agent the Project Data Sources are not copied as part of the SSIS package.

So I had to change all of the SSIS Data Sources to be just for one package.

Short answer, if you are planning to deploy the packages outside of Visual Studio, don't use the Project Data Connections.
0
 
yonbretAuthor Commented:
I had to call Microsoft for a resolution
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now