A timer job runs in a specific Windows service for SharePoint Server to automate common SharePoint tasks.

learn more… | top users | synonyms (1)

3
votes
2answers
2k views

Cannot send emails through SMTP using a Timer Job?

I'm trying to use Timer Jobs as part of a system to send out special periodic emails to users of our SharePoint site collections. The timer jobs work... except when it comes to actually sending the ...
3
votes
2answers
1k views

Develop a timer job that operates only on selected site collections

Advancing from my original intent to run things via a Workflow as per this original question, I've started to work on a complex, configurable Timer Job that reads from each listitem to determine the ...
1
vote
1answer
3k views

Class not found in assembly when deploying custom timer job

Been struggling with this problem for a while. I'm deploying a custom timer job to SharePoint Foundation 2010, initially using the tutorial here. This timer job is supposed to add an element to a ...
2
votes
2answers
833 views

Cannot update DB record from SP timer job

I am trying to create a timer job that will read a list of new customers from a SQL server db, create a site for the customer and then update the table with the site's id. I have no trouble reading ...
3
votes
1answer
1k views

Create a farm wide timer job…is it ok?

I'm following this http://msdn.microsoft.com/en-us/library/cc406686%28office.12%29.aspx and have successfully created a TimerJob that is WebApplication wide. this line foreach (SPSite ...
2
votes
1answer
2k views

Sharepoint 2010: Custom Timer Job Configurable Properties

I would like to know if it is possible to have configurable properties for a timer job that can be managed via Central Administration, prior to the job actually running. Let me paint a usage ...
1
vote
2answers
899 views

SpTimer job running on a farm not working as expected.

I am writing a timer job in the proposed way using a feature receiver to install the timer job. In my development environment, things are working well, its stand alone. When I deploy to test ...
1
vote
1answer
137 views

Timer Job Guid seems to be wrong

I have created a timer job which was deploying and working without any problems. I then created a second job in the same feature and had some problems deploying it, but after restarting Visual Studio ...
1
vote
2answers
2k views

Running code under another user in custom timer job

My OWSTIMER.EXE process is running under network service. I have a certain timer job that should perform the following actions: Add taxonomy terms to a certain term store Add items to a certain ...
0
votes
2answers
2k views

Custom SP Timer Job in Sharepoint 2010 not working (does nothing)

I'm busy writing / debugging my first custom timer job in Sharepoint 2010. What is working so far: The timer job installs The timer job can start What's not working: Nothing else seems to be ...
0
votes
2answers
225 views

Job not executing

I'm creating a job but it doesn't seem to be executing. The constructor is being called, but the OnExecute isn't, I can tell that since I see it in DbgView: [6960] ReadAuditLogJob() [6960] ...
0
votes
2answers
903 views

Configuration for timer job Sharepoint 2010

I have a timer job that needs to connect to a SQL Database. Where would one typically store this connection string. In normal app development, one has app.config. Clearly using app.config in this ...
0
votes
1answer
155 views

MOSS TimerJob “results” are not appearing on the sites

I have weird problem with my custom timer job... My timer job rans perfectly and shows succeeded in tmr status page BUT no changes don`t appear in these site collections. I have heavily logged ...
1
vote
1answer
453 views

Sharepoint 2007 Workflow 'Pause for Duration' action SharePoint timer service

I have several workflows that have been designed in SharePoint 2007 that use the 'Pause for Duration' action. I know that this action is dependant on the SharePoint Timer Servce. My question is if ...
1
vote
4answers
2k views

Custom Timer Job Throwing Exceptions

I have written a custom timer job, created a feature, and written a feature receiver to install and uninstall the Timer Job in the web app on Activate/Deactivate. The custom job roughly follows the ...
0
votes
2answers
621 views

Best practise for store/edit setting for custom time job?

What's the best practise for store/edit setting for custom time job? Well, we have OOTB _admin/Timer.aspx and /_admin/JobEdit.aspx pages, but if we have custom timer job with some setting (by the ...
1
vote
2answers
3k views

Create sptimer job in c# and/or powershell

Can anyone tell me how to go about creating a timer job for sharepoint 2010 either using C# or Powershell. All the best
2
votes
2answers
1k views

How do I start a workflow from a timer job?

I need to start a particular workflow in a list from a timer job. Is there any sample code for starting the workflow in the timer job's Execute() method?
0
votes
2answers
594 views

Timer Job Installation Error - Error obtaining reference to Site

I Have weird problem intalling custom timer job definition to specific webapplication. Environment is 2x wfe + 1x application server. Development and staging works fine (single server boxes) ...
1
vote
1answer
592 views

Timer job to copy file

I have a web application scoped feature that creates and submits a one-time timer job when the feature is activated. The purpose of the timer job is to copy a file from one directory to another on the ...
0
votes
4answers
3k views

Immediate Timer job wont start

I have an immediate timer job that stopped working on the 7th July. It is the only timer job that has stopped and will not run. I've restarted the services, set the job to run every 1 min, reset IIS. ...
1
vote
3answers
751 views

Can SharePoint timer jobs call SQL Server?

I have created a console application that retrieves data from SQL Server 2008 into a SP 2010 portal. The account that it uses is a personal account that is part of an AD group that has been configured ...
8
votes
2answers
776 views

Executing a new instance of a timer job before the previously running instance has finished executing

I have a timer job that invokes a WCF service that invokes a single threaded API internally. TO ensure that my system does not fail, i want to ensure that only a single instance runs at a time. I am ...
2
votes
2answers
253 views

Database migration problem

We have recently migrated our MOSS databases from MS SQL Express 2005 to MS SQL 2008 both intances running on the same Windows 2003 server. After "successful" migration we switched the 2005 server ...
2
votes
1answer
842 views

Best Practices for Deploying Timer jobs in Server Farm Environments with multiple WFE

i have a timer job which i want to run only once per day, for the entire farm. How do I Deploy it in a multiple WFE environment? Do I run the stsadm -o deploysolution command in every WFE, or just ...
1
vote
1answer
3k views

Delete timer jobs

I have a couple of timer jobs that I cant get rid of. I think they got created as a consequnce of creating a custom job. Also, if I use powershell Get-SPTimerJob then I get an exception. ...
0
votes
1answer
55 views

Performance Metrics and CA Configuration & Content DB?

When can we expect a maximum number of SQL connections for the Central Administration Configuration & Content DB? and what are all the important tables in these databases that an administrator ...
2
votes
3answers
510 views

What decides which machine a Timer Job is run on?

What decides which machine a Timer Job is run on for jobs that have a lock of type JobLockType.Job? Is it completely random?
4
votes
4answers
2k views

What techniques do you use to debug/test your SharePoint Timer Jobs?

I have developed a number of SharePoint Timer Jobs and they are always a bit more painful to debug and test than other areas of SharePoint. I was wondering what tools/techniques other people use to ...
5
votes
3answers
785 views

What happens to executing Timer Jobs when the Timer Services is restarted?

What happens to executing Timer Jobs when the Timer Service is restarted? Does it abruptly abort any executing jobs? Is there an exception to catch (for example ThreadAbortException) in your timer ...
2
votes
1answer
96 views

Running code that creates a TimerJobDefinition outside of Central Admin

I have run into a problem several times now where I have developed a custom timer job, and I want my site collection administrators to manage the schedule of this job with a custom application page ...