Solved

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

Posted on 2008-11-03
4
411 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now