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

learn more… | top users | synonyms (1)

1
vote
2answers
4k 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
1
vote
2answers
375 views

How to develop for Sharepoint 2010 in VisualStudio when your sharepoint server isn't on your local machine

I am trying to program a timer job for sharepoint 2010. It's for my job at school and the sharepoint servers are located somewhere on campus where I don't have access to them. I am new to visual ...
1
vote
3answers
75 views

Unable to debug TimerJob in Visual Studio 2012

I have create a timer job and deployed in SharePoint 2013. Debugging worked fine couple of times. After retract and redeploy couple of times. Now while attaching to OWSTIMER getting below error. ...
1
vote
3answers
6k views

SharePoint Timer Job Configuration

I have a custom SharePoint timer job which needs access to a WCF service. Access to that service is configured via WCF endpoints in the C:\Program Files\Common Files\Microsoft Shared\Web Server ...
1
vote
2answers
103 views

Accidently retracted two solutions, but timer is not running

I've accidently retracted two solutions from the farm in WSS3 but luckily the timer is not running so the jobs did not run. Now when I go to Solution Management I see "Error" for their deployment ...
1
vote
1answer
478 views

The timer job for this operation has been created, but it will fail

When I try to run the upgrade solution command on my server I get following error: The timer job for this operation has been created, but it will fail because the administrative service for ...
1
vote
3answers
241 views

Cannot create a timer job with a yearly schedule

I want to create a custom timer job with a SPYearlySchedule. The job deploys successfully, but when I view its settings in the central admin, it is shown to have an hourly schedule: Furthermore, as ...
1
vote
1answer
2k views

How to get the root site collection from a web application?

I am using sharepoint 2010 with some custom timer job at web application scope. In this timer job I have a foreach which loops into all site collection in the current web application. There is an if ...
1
vote
2answers
124 views

Value retain when redeploy of SharePoint Timer Job

I have a very simple question on SharePoint 2010 Timer Job, I build by reference from here. Basically upon execute of the Timer Job, I add an entry to SharePoint Custom List as following: public ...
1
vote
4answers
1k views

Advantages/disadvantages of Timer Jobs vs. PowerShell scripts

I've worked with several examples of both SharePoint Timer Jobs and PowerShell scripts, some of them doing the same things as the other. In my experience, PowerShell scripts are far more flexible, ...
1
vote
3answers
6k views

“Access Denied” while Activating Custom Timer Job

When i tried to Activate Feature of Timer Job It returns error : Access Denied Scope of Feature is "Site".. private static void CreateJob(SPSite site) { try { ...
1
vote
3answers
986 views

How to delete a custom timer job?

Although we can delete a running timer job from Central administration Monitoring section, but is there anything that we need to implement in a custom timer job so that the job stops as soon as it is ...
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 ...
1
vote
2answers
30 views

Quarterly Timer job

I am creating a timer job that sends mail on 1 day of every quarter of a year. I have written the code. Only I have to add code to schedule it. Please help me.
1
vote
1answer
65 views

Timer job to run weekly to send email notifications

I am looking to create a timer job that would run weekly and send an automated mail to seven different groups of users very start day of the week. For example week starts with Monday every Monday ...
1
vote
2answers
1k views

why timer job stucks at initialized status

I don't get the point why sharepoint timer job stucks at "Initialized" status, even tho it worked properly once, any idea's ? I know how to make it work again then but just dont understand the ...
1
vote
1answer
2k views

Run a custom timer job only on weekdays

So I want to run a timer job only on weekdays. Does anybody have any experience with a similar requirement? I can think of two options: Inherit from the SPSchedule class, and write my own custom ...
1
vote
1answer
1k views

Custom timer job only runs on application server

I have a custom timer job that I create an instance of by activating a web application scoped feature in Central Admin. In the farm, the Central Admin box is an application server. What I'm finding is ...
1
vote
2answers
957 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
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 ...
1
vote
1answer
99 views

Is creating a Timer Job in SharePoint 2013 as a farm solution , a deprecated approach that i should avoid

I want to create a timer job in sharepoint 2013, the purpose of the timer job, is to loop through my list items and do these two actions:- Check if the "Review Date" of an item is met (Review date = ...
1
vote
1answer
74 views

Iterate all documents and folders in a document library,

We have a document library on our Intranet where documents are stored. The document library also has 2 folders with broken inheritance. I want to loop through all the documents in the document library,...
1
vote
2answers
244 views

How to set timer job interval?

How can we set timer job so that it will run on specific date of month? For example, i want schedule timer job to run on 2nd and 28th day of month. How can we do that?
1
vote
2answers
233 views

How to restore deleted OOB Timer Job

One of development server "delete job history" job got deleted accidently. Now how to restore it back? We have ran the configuration wizard, but no luck.
1
vote
1answer
89 views

I want to know where are the timer jobs, webparts and user controls saved?

Are they saved in the content db or Layouts folder?
1
vote
1answer
2k views

How to identify the jobs which are running?

I need to find the jobs which are running currently. This is to check the longest running jobs. Is there any powershell sript to get this done?
1
vote
1answer
830 views

Accessing Entity Framework from Timer Job: connection string problem

I had a DB that normally I access from my SharePoint (2010) custom feature by Entity Framework. The connection string is stored in the web.config. If I do something like that from outside TimerJob: ...
1
vote
1answer
749 views

Executing sharepoint Job on single content db

I've added a 2nd site collection with its own content db. My custom timer job now runs twice, I want it to run only once as it sends an email out. How can I achieve this ? Here is my code : I've ...
1
vote
1answer
547 views

SPJobDefinition Execute Method isn't overriding

I built a custom Timer Job on activation I was able to debug it and it was going through Execute method I am overriding but suddenly its not overriding anymore. Code is here: public class ...
1
vote
1answer
131 views

Custom TimerJob

I need to disable a custom timer job when deactivating a feature and must run the timer job on activating the feature in SharePoint 2010. Can you please help me with the code or blogs or pointers. ...
1
vote
1answer
1k views

Is there any reason to have the “Scheduled Approval” timer job run every minute?

Why is the Scheduled Approval timer job in SharePoint 2010 scheduled to run every minute by default? What are the potential issues with making it 5 or 10 minutes? Does this timer job only apply to ...
1
vote
1answer
523 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
3answers
848 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 ...
1
vote
1answer
55 views

How to restore a delete-timer-job-history timer job without any downtime

I deleted the job-delete-timer-job-history accidentally and even the job definition wont show up now. what is the easiest method to re create/undelete the job without any downtime. Nicholas
1
vote
1answer
27 views

Configuration page for a custom timer job - how do I get the job definition?

Part of a project I'm working on involves creating a custom timer job which has some properties which are populated via the feature Template.XML file by default. However, while this is sufficient for ...
1
vote
1answer
1k views

Invoking PowerShell inside a SharePoint 2013 timer job throws an exception

I have a SP2013 timer job where I'm executing some SharePoint PowerShell commands. The same code that used to work in SharePoint 2010 will not work in SharePoint 2013 (Server 2012) - when the job is ...
1
vote
1answer
296 views

Why is TryGetList failing within my Timer Job?

I have a custom SharePoint 2010 Timer Job that had been running fine. The job performs processing on 88 sites in our web application. One day, everything was working fine. The next day, the 72nd site ...
1
vote
2answers
102 views

Can't write to ULS

I have done some minor fixes to a timerjob, which writes to ULS after every step and error, but, for some reason after last deployment, it fails and is most confusing to me - doesn't write to ULS (...
1
vote
3answers
73 views

Timerjob location

I want to know, is there any way to find where timer-job is activated (url where timerjob's feature activated) using Powershell.
1
vote
1answer
679 views

Not importing .usage files when they exist and are current

In the ULS logs I found this error which occurs at 2:00 AM: There are no usage log files available to import with filter 'SV-SP-????????-?????.usage' I did not notice this before because I was ...
1
vote
1answer
210 views

Create Timer Jobs dynamically using code (on the fly)

What I am trying to accomplish here is different from the usual "Create and deploy a new custom timer job". So please co operate. Scenario : I have around 200 lists in my site. Each list gets its ...
1
vote
1answer
639 views

Server getting flodded with SPUCWorkerProcess.exe

Got a SP2010 Server server that we use as an app server (not a WFE other than the Client Administrator). I had to reboot it to clear out dozens of processes as seen in Task Manager. We had probably 70+...
1
vote
1answer
272 views

SPJobDefinition - base.Execute(targetInstanceId);

I have a timer job that manipulates items in a list. The code for it looks something like: public overrride void Execute(Guid targetInstanceId) { //base.Execute(targetInstanceId); /* Code ...
1
vote
1answer
67 views

Timer job removing web part after 5 minutes

I have 3 lists on my home page. News Events Alerts I have 2 sites English(Master site) Arabic I have added News, Events and Alerts web parts on English home page. News and Events are ...
1
vote
1answer
44 views

When submitting/creating a custom timer job in SharePoint, how is the job's ID set?

I have a number of custom jobs that my program adds to my SharePoint environment. I noticed that there is no option to give the job a particular ID/GUID in the constructor. So my question is: How is ...
1
vote
2answers
550 views

timer job not appearing- SharePoint 2007

I have created a Timer Job and deployed the wsp to the central admin. The feature is installed and activated fine. I don't get any error. But i can't see the timer job in the Timer job list in ...
1
vote
1answer
699 views

workitem timerjob wont execute

I have the following timer job, not done by me. When I attach debugger to OWSTIMER.EXE the constructors are triggered but the ProcessWorkItem method is never step into. There are about 4000 ...
1
vote
1answer
2k views

Rating's not being saved

Initially, I thought there was a problem with a control I've made to rate a document when I found that no documents appeared to be rated. So last night I rated documents (approved and published) ...
1
vote
1answer
685 views

Moss Timer job deployed in one web application but running in a different web application

I can't believe Timer Jobs and SharePoint can be this un-predictable. I deployed my Timer job feature solution to web application A and activated feature, it worked for 3 days in same web application ...
1
vote
1answer
226 views

Timer Jobs auto provisioning?

I want to create a timer job that will be on all of SharePoint's web applications. It's not a problem - but I'm thinking of the situation when a new web application is created. Will my timer job be ...