Questions tagged [custom-timer-job]

A third party timer job designed to accomplish a specific purpose, which represents a built-in SharePoint object structure that can perform various tasks within the SharePoint environment on a scheduled or on a one-time event basis.

Filter by
Sorted by
Tagged with
12
votes
5answers
11k views

When should we use SharePoint Timer job and when Windows Task Scheduler?

Can somehow explain me what are of the benefits of using SharePoint Timer jobs over Windows Task Scheduler?
12
votes
1answer
2k views

Custom Timer Job does not Execute

I have a custom timer job that loads items into a generic list. The timer job is not executing. The timer job is deployed and the feature is activated. I can see the Timer job in the Job Definitions ...
8
votes
2answers
18k views

How to return all user profiles

I need to query the entire user profile store and do multiple operations such as filtering based on one user profile property, sorting by another, and grouping on yet another. Is this possible using ...
5
votes
2answers
2k views

Run Timer Job on a specific Web Application

I have a custom timer job in which the scope of the timer job is "Web Application", which is defined in feature of timer job. Now When i have deployed the timer-job it runs for all the web ...
5
votes
1answer
8k views

Run Sharepoint timer job programatically using RunNow() using account having non admin rights

I have a custom timer job which is scheduled to run during specific time period. I want to give a Run Now functionality using button click from custom sharepoint webpart. If i run timer job using a ...
5
votes
4answers
5k views

Custom Timer Job/Solution Deployment Problems

I have a single solution that consists of the following: Custom Timer Job (WebApplication scoped) Custom Content Type and List (Web scoped) Custom Logging Area (Web scoped) These features are set ...
3
votes
2answers
3k views

How to create SharePoint Folders programmatically?

How can I create a folder in SharePoint 2013 programmatically? This is how I done the creation of a List. Is it possible to do it with folders? public static SPList GetOrCreateList(ref SPWeb web,...
3
votes
2answers
2k views

SPMinuteSchedule - can it run longer than 1 minute?

I created Timer Job, and create definition on Feature Activated. I have question about schedule. If I use Minute Schedule like this: SPMinuteSchedule schedule = new SPMinuteSchedule(); schedule....
3
votes
1answer
618 views

The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url

In my web application level feature, its activated, but unable to see teh timer job in the timerjob definitions, in monitoring so i went with activating feature with powershell, receiving this error: ...
3
votes
2answers
124 views

Timer Job bi weekly

can someone help me please to set the schedule of the timer job biweekly, present we are running our custom timer job every Sunday 2 am, I want to schedule the timer job run once in two weeks.
3
votes
1answer
2k views

How do you decide the scope of a feature when creating timer job?

We are using SharePoint 2013 and have task of creating timer jobs which run everyday, with functionality like sending out emails based on due dates of list items, adding items to list, changing values ...
3
votes
1answer
2k views

TimerJobs and ULS

I have developed a custom Timer Job, which is deployed to my Sharepoint 2010 Enterprise environment. I often notice that things that happen in the TimerJob will not be entered into the ULS, in the ...
3
votes
1answer
583 views

Timer Jobs are running TWICE in pre-prod environment

am facing an issue in the timer jobs of my sp farm. From last 2 days, my env. timer jobs are running TWICE. Irrespective of whether its default- OOTB timer jobs or my custom timer jobs, all are ...
2
votes
1answer
1k views

Exception when getting the value of field in SPListItem

Hi Guys I have this problem: I query a list using Caml. items = list.GetItems(query); This returns 6 items and works ok. Then I do: foreach (SPListItem item in items) { var title = item["...
2
votes
3answers
329 views

SharePoint TimerJob not executing

I have a TimerJob in my feature that is not executing. I've tried restarting the timer service (below), deactivating and activating the feature, and manually executing the job using the "run now" ...
2
votes
3answers
1k views

Problem Activating Custom Timer Job

Right now I'm trying to create a SharePoint 2010 Custom Timer Job in Visual Basic 2010, which doesn't want to register itself in the SharePoint Timer (it appears to add ok and everything, but doesn't ...
2
votes
2answers
862 views

SharePoint custom timer job does not execute

I have a custom timer job that inserts into 3 lists. I've been following this tutorial and it was working perfectly fine, I was able to debug and deploy the timer without any problems. Now a few ...
2
votes
1answer
417 views

Office 365 use Visual Studio for Event Receiver or Timer Job

I'm using Office 365 small and want to know if I can use Visual Studio for Event Receiver or Timer Job?
2
votes
1answer
629 views

Is it possible to deploy SP 2010 Timer Job to SP 2013 farm?

Within a 2010 farm I've got a custom timer job. The timer job is installed/activated via web application feature. Now I need to provide the timer job's functionality/results to site collections ...
2
votes
1answer
577 views

How to change the Custom Timer Job's title after initial deployment

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 ...
2
votes
1answer
3k views

Custom SharePoint timer job is not visible in the central admin

A custom SharePoint timer job is not visible in the central admin job definition section. I have: Activated feature in the application, Restarted the SharePoint timer services, Restarted IIS using ...
2
votes
2answers
2k views

Unable to update list item - Additions to this web site have been blocked

I am developing a SharePoint job. In the public override void Execute(Guid targetInstanceId) method, my code goes: SPSecurity.RunWithElevatedPrivileges(delegate() { int count = this.WebApplication....
2
votes
3answers
225 views

Custom TimerJob SQL Access?

Im trying to access an SQL database from a custom TimerJob, but it fails. Without hitting the Exception, it just stops. I got the exact line where it get stuck: SqlDataReader sqlReader = sqlQuery....
2
votes
0answers
7 views

How to tackle SharePoint 2013 Custom Timer Job Posting Data To SIEBEL's SOAP Service Failed over the Intranet after Enabling TLS 1.2

The Custom Timer Job is deployed on the SharePoint 2013 (On-Premises) Farm. The solution is written using the .NET Framework 4.5. Timer Jobs are executed on the Windows Service Level so assuming ...
2
votes
0answers
248 views

custom timer job issue

I created timer job in dev environment. It is simple one that targets list items and sends communication. It works fine in dev. Before moving it to the other farm I changed all hardcoded url's to ...
2
votes
2answers
274 views

SharePoint 2013 - Custom Timer Job prevent concurrent instances

I have a timer job that runs every minute. The timer job needs to do some processing and it may take more than a minute. I don't want the job to get triggered if previous instance is still running. ...
2
votes
2answers
637 views

Error occurred in deployment step 'Add Solution': Specified argument was out of the range of valid values

I've been working o a Timerjob project. All of a sudden, when I try to deploy the solution from VS, I got this error: Error 1 Error occurred in deployment step 'Add Solution': Specified ...
2
votes
1answer
76 views

migrate timer job from sharepoint 2007 to 2010

is it possible to migrate a custom timer job from SharePoint 2007 to 2010? is so,please let me know what points should i keep in mind before & after proceeding.
2
votes
0answers
1k views

All timer jobs runs three times including my own custom timer job

All timer jobs on my server runs exactly three time. Not more not less. I noticed this when I created my own custom timer job. My custom job and all other sharepoint's jobs runs exactly three time. I ...
2
votes
0answers
170 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...
2
votes
1answer
33 views

Users get subscribed to the same list more than once

I have developed a timerjob for MOSS 2007 which loops through a variety of subsites and then loops through all users on each site. Code can be seen here The issue at hand is that some of the users ...
2
votes
2answers
675 views

Custom timer job email problem

We have a daily custom timer job that emails a newsletter. Recently newsletters have not been sent and the timer job status has been stuck on "initialized 0%" I have cleared the cache as described in ...
1
vote
3answers
8k 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
2answers
461 views

Can Timer Jobs Be Used With SharePoint Online? (O365)

I've watched some tutorials on creating timer jobs and they seem to use serverside code, which from what I understand cannot be used with SharePoint online hosted on a Microsoft Server. Is there any ...
1
vote
2answers
151 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
2answers
622 views

Error in Deploying/Activating timerjob wsp feature in server farm env. How to deactivate the features from all web applications

I have created a custom timer job in my SP 2013 SP1 on-prem env. when i tried to re-install/ update the wsp using powershell, am getting error: A feature with ID 15/ab47de69-4189-41d5-a8a8-...
1
vote
2answers
111 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
2answers
5k views

How to have SPSite object available in custom Timer Job?

Here's my FeatureActivated method: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site; MyCustomJob customJob; SPDailySchedule schedule; ...
1
vote
2answers
2k views

Get rid of a TimerJob/Feature which throws an exception

I created a TimerJob which is activated upon Feature activation. Because I didn't know better, I forgot to add an public default constructor and now I always get this exception: "Error occurred in ...
1
vote
1answer
1k views

Custom Timer Job not running on SharePoint 2013

All of the custom timer jobs are not running without showing any error/correlation IDs. Below is the only stack I could see from ULS logs even after enabling verbose - no error/failures/exceptions are ...
1
vote
1answer
1k views

Get site collection in timer job

I use this code to get the site collection : SPWebApplication webApplication = this.Parent as SPWebApplication; SPContentDatabase contentDb = webApplication.ContentDatabases[targetInstanceId]; SPSite ...
1
vote
2answers
1k 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
1answer
1k 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
23 views

Auto Scan at set intervals and populate SharePoint 2010 List

Hi can anyone Help me! I want something that I am able to select a different SharePoint List every week. within that list select the columns that apply (Monday to Friday or just monday), I then need ...
1
vote
2answers
224 views

Custom Timer Job is not appearing in the JobDefinitions Page in CA

I am trying to implement a custom timer job in my SP 2013 on-premises appln. I have created the same. But the timer job is not appearing in the timer job definitions page. I have activated and ...
1
vote
1answer
74 views

Split a timer job based on content database

Background: Currently in our SP Farm there is one custom timer job 'X' we developed and scheduled at the web application level (using SPAllSitesJobDefinition as base class and override the ProcessSite ...
1
vote
1answer
5k views

Does restarting the SharePoint Timer Service have any negative impact on scheduled or running jobs?

I have a custom SharePoint job that I created. When I make updates to it, I restart the timer service programmatically to make sure that older, cached copy of DLLs are not used. However, this design ...
1
vote
2answers
46 views

O365 SharePoint requirements for a timer job solution

I would like to build a solution for SharePoint online. The solution should be able to automatically fire workflows. Is it possible to deploy such a solution on O365? Do you need Microsoft Azure for ...
1
vote
2answers
328 views

Custom timer job not sending mail in one environment

My timer job is sending emails perfectly in local machine where I have developed it based on a configuration list. When I moved it to the Development environment(No Visual Studio), It is not sending ...
1
vote
1answer
1k views

Setting a TimerJob Property via Powershell

I am currently adding a Property to my Timerjob in FeatureActivated via C#. This is my code. public override void FeatureActivated(SPFeatureReceiverProperties properties) { ...