Loading

Field Service - O2TravelAndBreaksUtils Apex Jobs are being Aborted

Date de publication: Sep 14, 2026
Description

Users might notice that the apex jobs of class O2TravelAndBreaksUtils are being aborted.

Résolution

The O2TravelAndBreaksUtils job recalculates travel and break times in Field Service whenever a Service Appointment schedule or its Assigned Resource's Service Resource changes. If both of these updates on Service Appointment and Assigned Resource are done in the same transaction, it leads to creation of 2 jobs of O2TravelAndBreaksUtils, and the first one is aborted.

Example:

A custom Apex trigger updates the Service Appointment's scheduled dates and then updates the Assigned Resource's service resource in the same transaction. This causes:

  • The SA update to enqueue an O2TravelAndBreaksUtils job (Job A) to recalculate travel and breaks.
  • When the Assigned Resource update fires in the same transaction, the FSL managed package detects that a travel recalculation job is already queued. It intentionally aborts the first job, merges the Service Appointment schedule time changes and Assigned Resource data into a single job (Job B).

Why the Job Is Aborted
This abort-and-merge behavior is intentional — it is done to prevent the overlap. It does not cause data loss.

Ressources supplémentaires
Numéro d’article de la base de connaissances

005459965

 
Chargement
Salesforce Help | Article