Question

I created an SSIS package entitled "DimEntity.dtsx"

I followed the instructions from this link to run this SSIS package using a scheduled Job.

http://blog.sqlauthority.com/2011/05/23/sql-server-running-ssis-package-in-scheduled-job/

After following the process of running-ssis-package-in-scheduled-job, I got this error after clicking OK from the image below.

enter image description here

Create failed for Job 'SSIS Package Exec'. (Microsoft.SqlServer.Smo)


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails. The statement has been terminated. (Microsoft SQL Server, Error: 515)


Could someone help me resolve this?

Thank you!

Was it helpful?

Solution

Select General on the left tab and enter a value for owner.

OTHER TIPS

Try setting the owner manually:

update msdb.dbo.sysjobs_view 
set owner_sid=suser_sid('<username or groupname here>',0) 
where name = 'jobname'

The job owner was probably set to [sa] by hand whereas it needs to be sa (or it is when set by the "Browse" functionality.

If you are using a vpn to access your server but you are not part of the domain, it may put your local machine's domain in and then fail. This is what happened to me. I browsed for an owner and selected one from the server's domain and this fixed it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top