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
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
121 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
942 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
1answer
33 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
998 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
940 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
51 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
2answers
275 views

Exception: System.NullReferenceException: Object reference not set to an instance of an object

I recently uploaded a timer job that's purpose is to kick off a workflow on items in a custom List. Upon trying to activate it, I am immediately redirected to an error page with a Correlation ID. ...
1
vote
1answer
58 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 ...
1
vote
2answers
149 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
167 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
84 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
1k 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
784 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
714 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
519 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
130 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
503 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
818 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
46 views

Error when activating feauture that installs a timer job

I have the following error when activating a feature, this feature is supposed to install a timer job. Failed to create receiver object from assembly "MundoNetElements, Version=1.0.0.0, ...
1
vote
1answer
22 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
240 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
90 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
69 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
579 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
194 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
534 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 ...
1
vote
1answer
242 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
64 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
43 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
512 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
644 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
675 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
209 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 ...
1
vote
2answers
2k views

Is it possible to run timer job like run now and get results

Just added a new Web Analytic service (that's been broken for ever) using msdn gg266382 article Made sure everything is enabled and configured for this new web analytic service (and made sure old wa ...
1
vote
2answers
2k views

Why Execute method is not called?

I have created custom timer job and successfully deploy it into SP. I see this timer job and feature on the lists. Job is being called every 10 minutes with status "succeeded". Issue is that Execute ...
1
vote
2answers
887 views

Column doesnt exist error - Sharepoint Deployment

I am getting an error while deploying a project to the Timer Jobs. It keeps shooting me an error that says "Column does not exist", when I go to my list and my code, there is no such variable or ...
1
vote
1answer
525 views

How can I non-destructively query the status of a SPWorkItem?

Suppose I have a custom timer job that processes work items. How can I check whether the timer job has processed a specific SPWorkItem without interfering with the actual processing? If I try to ...
1
vote
3answers
413 views

what is the best way to send survey or poll once a year

I have a requirement to send an online survey/poll/feedback form to all the users in our intranet once a year. I have been advised that this might require creating an infopath form and completed forms ...
1
vote
2answers
448 views

Workflow and timer job synchronization

I have a SP 2010 workflow that prompts information from the users, and a timer job which reads data from a constantly-updated DB. They both add data to another list item that stores the most recent ...
1
vote
1answer
180 views

SPSearchJobDefinition error after migrating to new domain

I've moved our sharepoint server (MOSS 2007) from one domain to another following this procedure. Everything seems to work OK but I've getting the error below in the event logs every five minutes. It ...