Google+

Job Definitions Page: Object Reference not Set

Leave a comment

December 10, 2013 by Ruaan Harmzen

I had to review some of my SharePoint 2010 job definitions to figure out why our social rating weren’t updating. So first place to look was the job definitions page. When I browsed there I got the dreaded “Object reference not set” error with not much more detail in the ULS.

Sidenote: Not sure why the inventors of the try\catch block cannot implement it in their own code

The error typically is caused by a null job definition. Here are the steps to find and fix:

  • In SharePoint management shell run “get-sptimerjob | sort-object -property Name | ft Name, Id, DisplayName >jobs.txt”
  • Open jobs.txt file and look for a definition where either the name or displayname is empty and copy the guid
  • Then delete job via:$job = Get-SPTimerJob [YourGUID]
    $job.delete()
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: