SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Not able to run Master package from Sql Server agent


Not able to run Master package from Sql Server agent

Author
Message
rahulsahay123
rahulsahay123
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 153
I have a master package that calls 10 child packages. I deployed the packages on sql server msdb database. From msdb if I am running the master package, then corresponding all the child packages are getting executed.

But when I am creating a Job where I am adding only the master package as the Step then I am getting error.

I tried creating job for single child package, it worked fine. But for the master package the job is failing.

Can anyone please help me out of this situation.....


Thanks
Rahul Sahay
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27243 Visits: 13268
It might be useful if you posted the error.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
smthembu
smthembu
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1108 Visits: 1094
is ur pkg stored in msdb or file system? are your pkgs connecting to external rdbms?

Im calling 15 child pkg from the master pkg stored on a file system no issues

It's better to fail while trying, rather than fail without trying!!!
sharath.chalamgari
sharath.chalamgari
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1472 Visits: 798
must be some permission issue with the execution account that agent job is running, did u tried with the file system ,plz post the error
rahulsahay123
rahulsahay123
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 153
the packages are deployed to the sqlserver ie msdb. so when I a running the master package from msdb it is working fine.
now when I am scheduling the master package in sqlserver agent I a getting error message:
"
Date,Source,Severity,Step ID,Server,Job Name,Step Name,Notifications,Message,Duration,Sql Severity,Sql Message ID,Operator Emailed,Operator Net sent,Operator Paged,Retries Attempted
08/06/2013 02:06:14,BlsToTls,Error,0,SQLHQ1,BlsToTls,(Job outcome),,The job failed. The Job was invoked by User STONEWOOD\rsahay. The last step to run was step 1 (Master Calling Child).,00:00:02,0,0,,,,0
08/06/2013 02:06:14,BlsToTls,Error,1,SQLHQ1,BlsToTls,Master Calling Child,,Executed as user: SQLHQ1\SYSTEM. Microsoft (R) SQL Server Execute Package Utility Version 10.50.4000.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 2:06:14 AM Error: 2013-08-06 02:06:16.10 Code: 0xC00220E8 Source: Legal Entity Description: Error 0x80070003. Unable to access the package file<c/> "C:\Packages\BLStoTLSTransfer\BLStoTLSTransfer\pkgTLSLegalEntity.dtsx". Make sure the file exists and you have permission to access it. End Error Error: 2013-08-06 02:06:16.10 Code: 0xC00220DE Source: Legal Entity Description: Error 0x80070003 while loading package file "C:\Packages\BLStoTLSTransfer\BLStoTLSTransfer\pkgTLSLegalEntity.dtsx". The system cannot find the path specified. . End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 2:06:14 AM Finished: 2:06:16 AM Elapsed: 1.25 seconds. The package execution failed. The step failed.,00:00:02,0,0,,,,0

"

Thanks
Rahul Sahay
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27243 Visits: 13268
You said the packages are deployed to the MSDB, but the master package is still trying to locate packages on the C: drive. You need to update your execute package task with the correct location of your packages.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
rahulsahay123
rahulsahay123
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 153
when running the master package from msdb then the master package is picking all the child packages from sysssispackages tables in msdb.

But when trying to run from sqlserver agent it is referring the file system. is there a way by which I can configure this at runtime?
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27243 Visits: 13268
rahulsahay123 (8/6/2013)
when running the master package from msdb then the master package is picking all the child packages from sysssispackages tables in msdb.

But when trying to run from sqlserver agent it is referring the file system. is there a way by which I can configure this at runtime?


If you run the package manually from MSDB, it runs on your computer, not on the server. That's why you don't get an error, because it can find the packages on your C: drive.
For more info, check out this blog post: Where is my SSIS package executed?

You can change the packages at runtime by using package configurations.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
smthembu
smthembu
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1108 Visits: 1094
From your job on that pkg, check the properties of the "Data Sources" then the Connection String

see attached pic

It's better to fail while trying, rather than fail without trying!!!
Attachments
screen.JPG (24 views, 32.00 KB)
rahulsahay123
rahulsahay123
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 153
so you mean to say that I should store the package path in a sqlserver table. then I should use foreach container and declare a variable say v_package of type object and should loop the table to get the package path. is that correct?

but in my case I require the packages to be executed in a particular sequence. that's why I am using execute package task for each packages and picking the package location from file system which happens to be the connection manager for each package.

Can you please suggest if I can do anything different here in order to run the master package from sqlserver agent?


Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search