Can run SSIS package alone but when ran through jobs it fails

I have an SQL server 2005 and SQL Express as well as a SQL 2012 server. I built a package that will export data from an SQL Express (2005) database into a SQL 2005 server. This package works great when I run the package alone but when I try to run it through Jobs it fails with the following error.

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
 and APPID
 to the user NT SERVICE\SQLSERVERAGENT SID (S-1-5-80-344959196-2060754871-2302487193-2804545603-1466107430) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

I have tried fixing it through Componenet Services however I dont know where to look to fix this issue. I know this is a permissions issue but where to fix it?
TimSr. System AdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Deepak ChauhanSQL Server DBACommented:
1. Open Administrative Tool> Component services>computer>mycomputer>DCOM Config>

2. Find the Microsoft SQL server Integration services <version>

3. Right click on the service and go to property > Security> launch and activation permission > 

4. select customize
5. click on EDIT
6. Add user which you want to
7. Assign permission (local launch , remote launch, local activation , remote activation)

In your case Local activation permission should be fine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimSr. System AdminAuthor Commented:
I have tried that but does not work. I tried adding the SQLSERVERAGENT as a user to that section but it says it does not exist. I added the Domain Administrator account and assigned all permissions but still it will not work. When I look at the Job it shows to run as Domain Administrator with Windows Authentication but still it fails with the same error. Is there a problem with the SSIS package? What am I missing?
Deepak ChauhanSQL Server DBACommented:
Copy the service name account name
'NT SERVICE\SQLSERVERAGENT' and paste in the find box when you add this user.

This account will be available on this system.

No issue with ssis package this is because SQL agent service is running through NT SERVICE\SQLSERVERAGENT account.

Or you can add this account in Windos local administrator group for test. But i would not recommend this.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Vitor MontalvãoMSSQL Senior EngineerCommented:
Did you see Microsoft's KB about the error?
TimSr. System AdminAuthor Commented:
I have tried all the above and still the package will not run. It keeps telling me I don't have permission. After adding Domain Administrator user and SQLSERVERAGENT user to Launch and Activation Permission I still get an error however it is no longer posted in the events it shows in Job History as permission is denied. What user is causing this issue? Below is the message I see.

07/02/2015 10:02:04,AIS_DATA_Import,Error,1,SQLSERVER,AIS_DATA_Import,AIS_Data_Extract,,Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.5058.0 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    
Started:  10:02:04 AM  Could not load package "\MSDB\AIS_Data" because of error 0xC00160AE.  
Description: Connecting to the Integration Services service on the computer "SQLSERVER" failed with the following error: "Access is denied."    By default<c/> only administrators have access to the Integration Services service. On Windows Vista and later<c/> the process must be running with administrative privileges in order to connect to the Integration Services service. See the help topic for information on how to configure access to the service.  Source:   Started:  10:02:04 AM  Finished: 10:02:04 AM  Elapsed:  0.015 seconds.  The package could not be loaded. The step failed.,00:00:00,0,0,,,,0

If I knew they right user to add to the service I would but it is not telling me which user cannot run the package.
Deepak ChauhanSQL Server DBACommented:
Ok  you can try to add the domain user and NT Service\SQLSERVERAGENT in MSDB database user and assign the role ssis_admin
TimSr. System AdminAuthor Commented:
OK, somehow some way I fixed this issue. I rebuilt the package using SQL Database credentials instead of Windows Authentication and it worked. I guess this issue is fixed but still am confused as to why it worked but it did so I am not going to waste anymore time on this issue. Thank you for all your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.