user1043535
user1043535

Reputation:

My SSIS Package works, but fails as a SSMS job (Error: 0xC0016016)

My SSIS Package works, but fails as a SSMS job (Error: 0xC0016016)

I am posting this question and sharing my solution to this issue as my own question because I didn't see the posed problem match the specific issue I encountered and the answers seemed to be scattered in different forum questions.

Background:

The Symptom: When manually running the job to make sure it worked, I got an error and saw this in the Log File Viewer. This was the first of several errors, but as this was chronologically the first error, I looked into this one first.

Upvotes: 3

Views: 12879

Answers (1)

user1043535
user1043535

Reputation:

I looked up the error code on Google and started looking at resolutions. Rather than retelling how I found the bits and pieces of the resolution, I am presenting an actionable result in sequence -- at least for me and the network infrastructure I'm working with.

  1. In the "properties" panel of the SSIS solution (do this first) and each package in that solution, reset the "ProtectionLevel" attribute to EncryptSensitiveWithPassword and set a password. The package passwords must match the solution password.
  2. Just a double-check, run your packages in debug mode to make sure that no other new issues arise. In my case, I needed to re-enter the sql server password for the source server database.
  3. Rebuild your SSIS solution.
  4. In SSMS, open your job and open the job step properties for the task in question.
  5. Select the "Command Line" tab. A "Package Password" popup appears. Enter the password that you entered in step 1.
  6. Select "Edit the command line manually" and place the same password from step 1 immediately after /DECRYPT.
  7. Repeat steps 4-6 for each job step that runs this type of package.
  8. Press the "OK" button and re-run your job.

I was able to run my job successfully after that.

Upvotes: 5

Related Questions