2

I set up a job to run a SSIS package in the SSIS Catalog, but the SSIS package doesn't start. If I right-click the package and run it, it completes successfully.

When I look in the execution history of the package in the Catalog, there is no sign that it the package was even started by the job.

I created a test package to make sure it isn't the specific package failing, so the package I'm testing with has a SQL Task that does a 'SELECT 1'. Still fails.

The job just stays in the "Executing" state until I stop the job.

I am running SQL Server 2014 Standard Edition, and running the job with a sysadmin account.

Why is the SQL Agent Job not running my package?

Edit: I had a look through this article but it either doesn't apply or I gave it a shot and it didn't work either.

Edit 2: I found an error under the SQL Server Agent Job History: Unable to terminate process 1850 launched by step 1 of job 0x5DAD5416FA09C445B82ABDBB49F75E38 (reason: Access is denied)

Does that mean my service account doesn't have enough permissions on the local machine? However, I AM able to run the job with DTEXEC using the service account without issues...

7
  • "...and running the job with a sysadmin account." If you're running it as a scheduled job (Server agent), isn't it run by the account that 'owns' that service? I think so. Anyway, how is the Package stored (file or in db)? Just noticed you mentioned "Catalog", so I guess in the db.
    – Mackan
    Commented May 25, 2015 at 18:22
  • I set up the account that "owns" the service as a sysadmin in the SQL Server Configuration Manager. Commented May 25, 2015 at 19:41
  • When you right-click the package and run it from the SSIS catalog successfully, are you doing that from the same account that you're running the Agent job as? Commented May 25, 2015 at 20:28
  • Yes, I am running Management Studio as the service account, and connected to the server with Windows Authentication. Commented May 25, 2015 at 20:36
  • If you create the Hello World equivalent of an SSIS Project and deploy to the SSISDB, does that package work?
    – billinkc
    Commented May 25, 2015 at 22:50

3 Answers 3

1

I have also faced this scenario many times but when I checked running the package manually,its completing successfully because I was using for each loop container and sequence container as well.In both cases for each loop and sequence were completing without validating other ones.So I checked precedence constraint and change it,Now it working and all the component ran successfully. Sometimes we miss to choose appropriate precedence constraint, there are many option like on Success ,failure,completion and then for you can choose values from Constraint ,Expression,Expression AND Constraint and Expression OR Constraint. Initially i was using Expression OR Constraint for success and now changed it to Expression AND Constraint, its working fine for me. You also need to do this,it will definitely work please try and let me know.

1
  • Where is this setting? At the SSIS Package level or system levels? Commented Jan 5, 2022 at 22:22
0

When you look at the connections in the SSIS package, did you put in a user id and password? If so, did you add a package password? The reason I ask is that if you don't add a package password, it will strip out things it thinks should be secure (like passwords). You might want to try putting the connection password in a configuration file, and add that file to the job. Either that or password encrypt the SSIS package but you will have to take special care when you run the package for the first time (or when you create the job) because you will need to provide the password that you used to encrypt the package.

2
  • Thanks for the suggestion, but even when I create an empty package in a fresh solution that did not contain any data connections, the job would still spin without calling the package. Commented May 26, 2015 at 16:17
  • I wouldn't recommend adding a password to the config file. If you abide by an IT Security policy there will almost likely be something in there about storing passwords in clear text. If your package has a need for passwords i would always recommend using a package password and have the agent decrypt the package on execution. Commented Dec 11, 2015 at 9:35
0

Reboot fixes this issue. Reason is because if you look at this message. Unable to terminate process 1850. That is a windows process. I would say reboot. If you really like to enquire before rebooting. You could use sysinternals process explorer. Download it and use that to find process id 1850 which may be hung process in windows.

Thanks Ali

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.