Problem: Errors while executing SSIS package as a SQL agent JOB

Problem: Errors while executing SSIS package as a SQL agent JOB

Hello,

I have a simple SSIS master package ,whose main task is to run other packages through the execute package tasks. The problem I’m facing is this. It runs fine when I run the package via BIDS but I get the following errors when I set up a job to run the Master Package.

Here is the error that I got the first time I ran this Master Package.

. Error 0xC0012050 while loading package file “D:\Data\AMF_DW_Incr_SSIS_Solution\AMF_DW_Incr_SSIS\AMF_DW_Incr_SSIS\FactBowlingCenterSales_Incr_v2 (1).dtsx”. Package failed validation from the ExecutePackage task. The package cannot run.  .  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:38:27 PM  Finished: 4:39:00 PM  Elapsed:  32.25 seconds.  The package execution failed.  The step failed.

I got a couple of soultions on the internet which basically asked me to change a few settings in the Host (Master package in my case). Here is the link.

I changed the DelayValidation=TRUE on the Master package and made it false in the child package , but I still kept getting the same error. I also changed the DelayValidation=TRUE  on Execute package task in the Master package, but it kept failing at the same point.

Now Since we have a proxy account set up for the Data warehouse task , I changed the Job to use the proxy account instead of the default sql server account.

Now the master package failed even before it reached the place it was reaching before. and here is the error.

Executed as user: AMF\DWSSISProxy. …on 9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:49:27 PM  Error: 2009-04-16 16:49:38.28     Code: 0xC001404B     Source: Master_Daily Log provider “SSIS log provider for Text files”     Description: The SSIS logging provider has failed to open the log. Error code: 0x80070005.  Access is denied.  End Error  Error: 2009-04-16 16:49:38.28     Code: 0xC001404B     Source: Master_Daily Log provider “SSIS log provider for Text files”     Description: The SSIS logging provider has failed to open the log. Error code: 0x80070005.  Access is denied.  End Error  Error: 2009-04-16 16:49:38.45     Code: 0xC0202009     Source: dimAccount_Incr Log provider “SSIS log provider for SQL Server”     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E09.  An OLE DB record is available.  Source: “Microsoft SQL Native Client”  Hresult: 0x8004…  The package execution fa…  The step failed.


Solution: Errors while executing SSIS package as a SQL agent JOB

I suggest you enable database logging in this package: D:\Data\AMF_DW_Incr_SSIS_Solution\AMF_DW_Incr_SSIS\AMF_DW_Incr_SSIS\FactBowlingCenterSales_Incr_v2 (1).dtsx

and see why the sub paqckage is failing. It looks like that error message indicates the sub package has failed, but its not telling you why. Logging on the sub package should tell you why.

The next error:

Description: The SSIS logging provider has failed to open the log. Error code: 0x80070005.  Access is denied

Means that the account it is running under cannot open the log file that you’ve set up.