Team blog of MCS @ Middle East and Africa

This blog is created by Microsoft MEA HQ near shoring team, and it aims to share knowledge with the IT community.With its infrastructure and development sides,It brings to you the proven best practices and real world experiences from Subject Matter Experts
Follow Us On Twitter! Subscribe To Our Blog! Contact Us

Error Object Reference when viewing timer job definitions in SharePoint 2013

Error Object Reference when viewing timer job definitions in SharePoint 2013

  • Comments 1
  • Likes

During configuring one of SharePoint 2013 farms we faced an issue when trying to list the timer job definitions using central administration, this is caused after a power failure in data center which may interrupted some provisioning activities , anyways when we try to navigate to job definitions page we received the error object reference is not set to an instance of an object

image

clip_image004

 

Now first area to think of is to check the log file , it indicate that one of the job properties is null , to fix this issue we need to know which job definition is exactly causing the issue ! by opening SharePoint PowerShell then typing the following command which lists all job definitions in farm

Get-SPTimerJob >allJobs.txt | Format-Wide

The parameter AllJobs.txt is the name of the text file that you need to export the list to , it will be generated in the same folder which you executed the command at

after examining the file and checking the job definitions I've noticed that there is one job definition with no name and no description, only the GUID for that definition is showing!

image

 

Getting the GUID for that job definition eb0d56e8-713f-4f08-9f80-167bb4ea59e6

Then using SharePoint power shell to get that job definition object to delete it as follows 

$job = Get-SPTimerJob eb0d56e8-713f-4f08-9f80-167bb4ea59e6

$job.Delete()

Now Issue is fixed and timer job definitions page is getting displayed in central administration

 

image

Comments
  • I'm having a similar issue, but when trying to view the timer job status instead of the definitions. Any advice?

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment