Loading

FSL Scheduled Dispatch Batch Job Fails on Auto-Run with Error message - Attempt to de-reference a null object

Дата публикации: Jun 24, 2026
Описание

When Sched007_ServicesAppoDispatchedBatch is scheduled via Setup → Scheduled Jobs (Apex) rather than through Field Service Settings, the FSL Automator Config custom setting is not properly initialized in the batch job context. 

The manual "Run Now" button in FSL Settings initializes this config correctly, which is why it succeeds while the auto-scheduled job fails.

 

Решение

Always reschedule FSL dispatch batch jobs only through Field Service Settings. Rescheduling via Setup → Scheduled Jobs (Apex) will cause this failure.

 

  1. Navigate to Setup → Scheduled Jobs and identify any instances of Sched007_ServicesAppoDispatchedBatch
  2. Delete all existing scheduled instances of this job from the Scheduled Jobs page
  3. Navigate to Field Service Settings from App Launcher → Dispatch → Scheduled Jobs > Run
  4. Locate the dispatch job and reschedule it from this page using an active System Administrator user
  5. Verify the job runs successfully at its next scheduled time

 

         

 

Номер статьи базы знаний

005387490

 
Загрузка
Salesforce Help | Article