ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Scheduled Tasks are missing under the Task Scheduler even though those schedules are present on the database

book

Article ID: 161324

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

Customer reported that after upgrading, many of his scheduled tasks under Task Scheduler were missing (like NS.Daily, NS.Business Hours), which basically were causing that other internal schedules were not running on the specified time.

When you look at the database for those missing scheduled tasks, those are actually present.
If you run the following query just to see if NS.Weekly is present and what is assigned to it to run, you can see that we have the right references:

select

 [Schedule] = it1.[name]

,[Policy Item]= it0.[name]

,[Enabled] = isnull(cast(ia.[Enabled] as nvarchar), '')

,[Hidden] = case 

                when (it0.[Attributes]%2) = 0 then 'No'

                else 'Yes'

                end

from ItemSchedule sched

join item it0 on it0.[guid] = sched.[ItemGuid]

join item it1 on it1.[guid] = sched.[ScheduleGuid]

left join ItemActive ia on ia.[Guid] = sched.[ItemGuid]

where sched.[ScheduleGuid] = 'ab7141ed-e03a-48e5-9051-a71b5912b7f2' --Add here the GUID for the Scheduled Task. In this case it is for the Weekly Schedule

  and it1.[name] like 'weekly%'  --Add here the partial name for the scheduled task that you are looking for

order by 1, 2

 

 None

Cause

 The issue was that the missing scheduled tasks were not enables under the shared schedules page. In this particular case "Business Hours" and "Daily" were not checked under Shared Schedules (causing that the proper entry in Task Scheduler was not present).

As you can see in the screenshot above, NS.Business Hours and NS.Daily are missing because the respective Shared Schedules are not active.

Note:

Customer's issue is that ALL scheduled Items (including hidden scheduled items) where marked as disabled. 

By design, reconfigurations will not change the enabled status of these schedules once they are set.  

For some of the disabled schedules, they could be enabled again in the UI; however some could not be enabled through the UI like "Delta Resource Membership Update" because their is no UI to enable or disable it, only to change its schedule and changing the schedule didn't enable it either.

In some instances you will need to find those scheduled tasks in the database and enable the flag in the State of the Items, restart all services (to ensure a clean item cache).

Resolution

 In order to fix this:

1. Go to Settings>Notification Server>Shared Schedules
2. Make sure you have those schedules enabled.
3. Reopen Task Scheduler.

If after the steps mentioned above there are still missing scheduled tasks, please refer to TECH213879 "Scheduled tasks disappear from Scheduled Task Library after upgrading to newer SMP release"

 

Applies To

 

SMP 7.1 SP2 MP1 or later
SMP 7.5 or later

Additional Information

202704 "Accidentally all the Default Windows Task Schedules were deleted on Symantec Management Platform server"

Attachments

recreate-all-schedules.cs get_app