Genady Vaisman
Genady Vaisman
July 10, 2017

The latest SharePoint version introduces a new setting that can be applied to each of the timer server instances: AllowServiceJobs

When this attribute is set to false, basically this server will not be able to execute timer jobs with SPJobLockType: Job ("Service Jobs").

This type of lock is needed to ensure that this timer job is executed only on one of servers, basically to prevent multiple executions of the same logic.

Several of our products are affected by this setting: ImportActionsAlerts. These Products will not be able to function properly in regards of their background / timed functionality. Another impact may be on the installation process, in terms of failure in deploying required recourse files.

Mind that this behavior can be caused only on SharePoint 2016 / 2019 farms, as previous versions did not allow this setting to be controlled.

A common reason for this behavior might be the lack of an Application server in a multi-server farm, according to farm topology definitions a multi-server farm must have at least one Application server.

On a single server farm, there must be a server with this exact role: “Single-Server farm”.

You can use the following PowerShell script to determine the value of this property in your farm:

$farm = Get-SPFarm

$FarmTimers = $farm.TimerService.Instances

foreach ($ft in $FarmTimers)

{

       write-host “Server: ” $ft.Server.Name.ToString();

       write-host “Status: ” $ft.status;

       write-host “Allow Service Jobs: ” $ft.AllowServiceJobs;

}

 

And the following script to enable it:

$farm = Get-SPFarm

$FarmTimers = $farm.TimerService.Instances

foreach ($ft in $FarmTimers)

{

      if ($ft.AllowServiceJobs -eq $false)

      {

             write-host “Service jobs are NOT enabled on ” $ft.Server.Name.ToString();

             write-host “Enabling service jobs”;

             $ft.AllowServiceJobs = $true;

             $ft.Update();

      }

      else

      {

             write-host “Service jobs are enabled on ” $ft.Server.Name.ToString()

      }

}

 

source: SharePoint 2016 / 2019 – Timer jobs with Job lock type do not run

Loading...

Add your comment

Comments are not meant for support. If you experiencing an issue, please open a support request.
Build powerful business applications in SharePoint using only your browser.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
ULTIMATEforms is a complete platform that enables everyone to easily create and maintain Microsoft SharePoint-based business solutions without a single line of code
Powerful Forms
State-of-the-art responsive forms, complete with tabs, permissions, dynamic rules, repeating sections, electronic signatures and advanced validation, powered by our AI-assisted form generator
Powerful Automation
Replace complex workflows with simple, but powerful actions to create and update data inside SharePoint and in a variety of integrated applications and databases
Powerful Reporting
Transform data into actionable insights with detailed exportable reports, sophisticated dashboards, color-coded calendars and dynamic charts
100’s of Templates
Build and replicate business solutions with ease, selecting from our vast free library and creating your own custom templates, all installed with a single click
Dive deeper
Watch a short introductory video showcasing the different unique capabilities of UltimateForms.
Ready to get started?
Hands-on training is the best way to get proficient. That's why we've created three unique training offerings which will help you master ULTIMATEFORMS. Our interactive sessions are delivered via web meetings and conducted within personal virtual workspaces.
100% No-Code Solution
It’s never been easier to create, innovate, and share. All you need is your web browser!
Cost-Effective
Address business process pain points immediately. Save time and money.
Fantastic Support Team
In addition to our responsive support team, a wide variety of resources, documentations, tutorials, blogs and webinars is available to you
Microsoft partner logo
© 2005-2024 Infowise Solutions Ltd. All rights reserved.
Privacy | Cookie Policy | Accessibility | Cloud SLA