Solved

DTS package execute fine manually, but as job I get...

Posted on 2008-11-03
4
427 Views
Last Modified: 2013-11-30
I created a DTS package that simply select values from a table and exports them to a .txt file.

The package runs just fine if I execute the package manually.

However, when i set it up as a schedule job, the job fails;  the job log details are as follows...

The job failed.  The Job was invoked by Schedule 71 (Horizon --> Midas \ sis$).  The last step to run was step 1 (Horizon --> Midas \ sis$).

Executed as user: TENEX\SYSTEM. DTSRun:  Loading...   DTSRun:  Executing...   DTSRun OnStart:  DTSStep_DTSDataPumpTask_1   DTSRun OnError:  DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)      Error string:  Error opening datafile: Access is denied.         Error source:  Microsoft Data Transformation Services Flat File Rowset Provider      Help file:  DTSFFile.hlp      Help context:  0      Error Detail Records:      Error:  5 (5); Provider Error:  5 (5)      Error string:  Error opening datafile: Access is denied.         Error source:  Microsoft Data Transformation Services Flat File Rowset Provider      Help file:  DTSFFile.hlp      Help context:  0      DTSRun OnFinish:  DTSStep_DTSDataPumpTask_1   DTSRun:  Package execution complete.  Process Exit Code 1.  The step failed.
0
Comment
Question by:tl121000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:SRigney
ID: 22867196
You are getting the error.  Error opening datafile: Access is denied.     Most likely the user that the job is running as does not have permissions to something that you have permissions to.
0
 
LVL 9

Author Comment

by:tl121000
ID: 22867300
the owner of the job is the domain admin - the job is being run as the domain admin manually - any thoughts?
0
 
LVL 15

Accepted Solution

by:
SRigney earned 300 total points
ID: 22867723
The error you provided shows that in step DTSStep_DTSDataPumpTask_1.   There is an error "Error opening datafile: Access is denied."  

Try logging in as the user that the package is running as when it's a job and run it manually.   Otherwise, double check the files that are used in that step and verify that the user has permissions to the server/folder/file to do what needs to be done.
0
 
LVL 9

Author Closing Comment

by:tl121000
ID: 31512675
delted and recreated the dts task using the sql account for db connectivity and the domain admin as job owner...

It was set up this way previously - no matter it works now

Thanks,
Tim
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

623 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