SQL Server Maintenance Plan Object Reference Error

15 Mar
March 15, 2012

I was just adding a small Ad-Hoc maintenance plan on our shiny new SQL Server 2012 test boxes, when I received the following error message:

Adding tasks to the maintenance plan failed: Object reference not set to an instance of an object.

This is a short post that goes through some reasons as to why this error message might appear.

The SQL Server Maintenance Plan is a very nice and “wizard-y” way of creating and automating database maintenance activities, such as Index Rebuilding, Database Backups, Database Restores, Statistics Update, and so on. It is extremely simple to setup, and can be extended in a fairly straight forward manner.

The Maintenance Plan is actually built on-top of a few services Microsoft releases with SQL Server, including SSIS and SQL Server Job Agent, hence your server needs to have SSIS in order to build the maintenance plan, and Job Agent in order to schedule the maintenance plan to run at regular periods.

The error message: Adding tasks to the maintenance plan failed: Object reference not set to an instance of an object is an indication that one of the required component for my plan was not available on the server, in my case, I didn’t have SQL Server Integration Services installed on that machine.

SQL Server Job Agent is not required to generate a maintenance plan, but it is only required to schedule the plan, and so you should still be able to create a maintenance plan without Job Agent.

Hope this helps.

SQL Server Maintenance Plan Object Reference Error rated 4 out of 5 by 1 readers

SQL Server Maintenance Plan Object Reference Error , 4.0 out of 5 based on 1 ratings

          0 votes
1 reply
  1. Nicolas says:

    Nice post , i forgot to install SSIS too and the error message is not clear at all

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply to Nicolas Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>