2

I created a SharePoint Custom Timer Job in Visual Studio 2012 following the steps given in this article by Ravi Rachchh. It works fine.

However, I wanted to change the Title of the Timer Job. So I changed the below given line in the constructor.

this.Title = "MNM's Test Timer Job";

However after re-deploying and activating the Feature. The Central Admin Job Definitions page shows the old Title.

What Am I missing here?

  • did you retract it completey and then redeploy it? also did you recycle the timer services on server? – Waqas Sarwar MVP May 27 '15 at 14:39
  • Yes. We did retract and after re-deploying we also performed the 'net stop sptimerv4' & 'net start sptimerv4'. – Muhammedh May 27 '15 at 14:42
  • did you change in all constructors? step 4 of this blog codeproject.com/Tips/634208/… – Waqas Sarwar MVP May 27 '15 at 14:55
  • Yes we did! Did a search on the entire VS project for the old title. does not exist. – Muhammedh May 27 '15 at 14:59
  • how many server in the farm? i would say completely remove it from server, recycle timer services(on all server) and then re-add and redeploy the new solution. – Waqas Sarwar MVP May 27 '15 at 15:01
2

You can use PowerShell for changing Title

$t = get-sptimerjob | where { $_.Title -eq "MNM's Test Timer Job" }
$t.Title = "New MNM's Test Timer Job"
$t.Update()
  • Worked perfectly! Jazakallahu Khairan :)! Any idea why the code doesn't update the title? – Muhammedh May 27 '15 at 14:56
  • I have observed this behavior, mainly with farm having multiple servers. Not sure exact cause. – Amal Hashim May 27 '15 at 14:57
  • we have only one server in the farm. – Muhammedh May 27 '15 at 15:01
  • Ok in that case try restarting OWSTimer service – Amal Hashim May 27 '15 at 15:02
  • I did try the 'net stop sptimerv4' & 'net start sptimerv4' commands. Still no luck! – Muhammedh May 28 '15 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.