Sandboxed Code Service Is Not Running

Microsoft.SharePoint.2016.SPServiceInstance.UserCode.IsRunning (UnitMonitor)

A critical state of this Monitor indicates that the Sandboxed Code Service is not running on a particular server.

Knowledge Base article:

Summary

To get the most current Knowledge Article from the Microsoft TechNet site, visit:

http://go.microsoft.com/fwlink/?LinkId=245024

Causes

View all current alerts from this object using this link:

View Alerts

Resolutions

You can attempt to restart the service using the following link:

Start SharePoint Sandboxed Code Service

Element properties:

TargetMicrosoft.SharePoint.2016.SPServiceInstance.UserCode
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SharePoint.Library.DelayedCheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
SharePoint: Sandboxed Code Service Is Not Running
A critical incident has occurred where Sandboxed Code Service (SPUserCodeV4) is not running.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SharePoint.2016.SPServiceInstance.UserCode.IsRunning" Accessibility="Public" Enabled="true" Target="MOSS16Core!Microsoft.SharePoint.2016.SPServiceInstance.UserCode" ParentMonitorID="Health!System.Health.AvailabilityState" Priority="Normal" TypeID="MOSS!Microsoft.SharePoint.Library.DelayedCheckNTServiceStateMonitorType">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SharePoint.2016.SPServiceInstance.UserCode.IsRunning_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>SPUserCodeV4</ServiceName>
<CheckStartupType/>
<TimerWaitInSeconds>300</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>