Solved

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

Posted on 2008-11-03
4
418 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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

685 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