Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More

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

Publish Date: Jun 24, 2026
Description

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.

 

Resolution

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

 

         

 

Knowledge Article Number

005387490

 
Loading
Salesforce Help | Article