none
Review Timer job Definition Page Errror " Object Reference not set to an instance of an object"

    Question

  • Hi Friends

    I am facing the below issue for Opening the page Review Timer Job Definition page.

    Please help me if anybody face this type of issue. Please share the tips on this...!

     


    Sujayakumar.Ravipati Sharepoint Admin

    Thursday, May 17, 2012 12:30 PM

Answers

  • Hi Abdul

    •  In my Case i had  found the Last job failed and traced the exact timer job. Now i tried to delete and check it.
    •  The below information is helped me for searching some MSDN Blogs.
    • The ServiceJobDefinitions.aspx page may fail with the “Operation is not valid due to the current state of the object” message because some timer jobs are in broken state. Use PowerShell cmdlet Get-SPTimerJob to review you existing timer jobs, and use the Delete() method on a job object to get rid of the bad guys there.
    • This command will enumerate the jobs that fail the ServiceJobDefinitions.aspx page, because it’s not able to render jobs with null-valued DisplayName property:
    • Get-SPTimerJob | where { $_.DisplayName -eq $null }
    • Most likely the “bad guys” are timer jobs that were provisioned with errors (they might have null-valued DisplayName, some good value for the Schedule property, and NB! never been run actually – LastRunTime with weird value), e.g. as part of Service Application provisioning sequence. This might be a case, for example, when an attempt was made to provision User Profile Service Application via PowerShell on a machine with User Account Control (UAC) turned on, and without elevating the shell with Administrator privileges.
    • So, recall what was the last thing that failed, find partly provisioned timer jobs (likely, with null value for the DisplayName property on the job object), delete them, and the ServiceJobDefinitions.aspx page will be fixed.
    • Get-SPTimerJob | out-file –filepath “c:\timerjobs.txt”
    • http://myserver:55555/_admin/ServiceJobDefinitions.aspx – Does not display
    • Get-SPTimerJob | where {$_.displayname -like “”} | fl | out-file –filepath “c:\timerjobs.txt”
      (Creates the txt file with the jobs that do not work)
    • Get-SPTimerJob | where { $_.name -like “*job name” } |ft id,name
      (Not really needed, as text file above will display thiws, simply copy/paste into line below the job id number.)
    • $job = Get-SPTimerJob -id putidenumberhere
    • $job.Delete()
    • Pretty swift, fixed the issue.

    Happy Trouble Shooting....!


    Sujayakumar.Ravipati [MCITP]

    • Marked as answer by sujayakumar Friday, May 18, 2012 3:10 AM
    Friday, May 18, 2012 3:10 AM

All replies

  • Hi,

    Check the complete error from SharePoint Log by using Correlation Id 

    http://zimmergren.net/technical/sp-2010-find-error-messages-with-a-correlation-id-token-in-sharepoint-2010


    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

    Thursday, May 17, 2012 1:21 PM
  • Try running:

    Get-SPTimerJob | where {$_.Status -ne "Online"}

    See if you come up with any results.


    http://sharepoint.nauplius.net

    Thursday, May 17, 2012 1:45 PM
    Moderator

  •  Hi Abdul

    Thanks for the quick reply. As i tried to use the cmd in powershell,

    get-splogevent | ?{$_Correlation -eq "f4493c20-2e19-45ab-be53-7513e0b1019a"}.

    I did n't get the result. It is taking long time but no result on this for me...!

    Please suggest any alternative way by what chance might this error occured. Appreciate your help ASAP....!


    Sujayakumar.Ravipati [MCITP]

    Thursday, May 17, 2012 2:09 PM
  •     Hi Seward,

       No Result came from your tip.


    Sujayakumar.Ravipati [MCITP]

    Thursday, May 17, 2012 2:13 PM
  • Hi,

    try the following power shell and read this thread

    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/9410aa16-d3b8-41b3-ad7d-197a40999837/

    $FUBARjob = Get-SPTimerJob | Where-Object {$_.DisplayName -eq $null}
    $FUBARjob
    
    $FUBARjob.Delete()


    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

    Thursday, May 17, 2012 2:18 PM
  • Hi Abdul

           No Luck on this also. I had tried but little bit usefull....!


    Sujayakumar.Ravipati [MCITP]

    • Marked as answer by sujayakumar Friday, May 18, 2012 3:10 AM
    • Unmarked as answer by sujayakumar Friday, May 18, 2012 3:10 AM
    Thursday, May 17, 2012 2:34 PM
  • Hi Abdul

    •  In my Case i had  found the Last job failed and traced the exact timer job. Now i tried to delete and check it.
    •  The below information is helped me for searching some MSDN Blogs.
    • The ServiceJobDefinitions.aspx page may fail with the “Operation is not valid due to the current state of the object” message because some timer jobs are in broken state. Use PowerShell cmdlet Get-SPTimerJob to review you existing timer jobs, and use the Delete() method on a job object to get rid of the bad guys there.
    • This command will enumerate the jobs that fail the ServiceJobDefinitions.aspx page, because it’s not able to render jobs with null-valued DisplayName property:
    • Get-SPTimerJob | where { $_.DisplayName -eq $null }
    • Most likely the “bad guys” are timer jobs that were provisioned with errors (they might have null-valued DisplayName, some good value for the Schedule property, and NB! never been run actually – LastRunTime with weird value), e.g. as part of Service Application provisioning sequence. This might be a case, for example, when an attempt was made to provision User Profile Service Application via PowerShell on a machine with User Account Control (UAC) turned on, and without elevating the shell with Administrator privileges.
    • So, recall what was the last thing that failed, find partly provisioned timer jobs (likely, with null value for the DisplayName property on the job object), delete them, and the ServiceJobDefinitions.aspx page will be fixed.
    • Get-SPTimerJob | out-file –filepath “c:\timerjobs.txt”
    • http://myserver:55555/_admin/ServiceJobDefinitions.aspx – Does not display
    • Get-SPTimerJob | where {$_.displayname -like “”} | fl | out-file –filepath “c:\timerjobs.txt”
      (Creates the txt file with the jobs that do not work)
    • Get-SPTimerJob | where { $_.name -like “*job name” } |ft id,name
      (Not really needed, as text file above will display thiws, simply copy/paste into line below the job id number.)
    • $job = Get-SPTimerJob -id putidenumberhere
    • $job.Delete()
    • Pretty swift, fixed the issue.

    Happy Trouble Shooting....!


    Sujayakumar.Ravipati [MCITP]

    • Marked as answer by sujayakumar Friday, May 18, 2012 3:10 AM
    Friday, May 18, 2012 3:10 AM
  • Worked like a charm. many thanks my friend.
    Wednesday, January 11, 2017 9:02 PM