Loading
Ongoing maintenance for Salesforce HelpRead More

Service Appointment shows new scheduled times, no assigned resource, and Status "None" after optimization

Publish Date: Oct 9, 2026
Description
After optimization runs, it updates two related records:
  • Service Appointment: the scheduled times.
  • Assigned Resource: the link between the Service Appointment and the assigned person.


These records are saved independently. If the Assigned Resource save fails, the new Service Appointment times are not undone.

Symptoms:
  • The SA shows the new Scheduled Start and Scheduled End times.
  • The SA looks unassigned because it has no Assigned Resource.
  • The SA Status is still "None".


Behavior:
  1. The SA times and the resource assignment are saved separately. Optimization can save the new times even when it fails to create the Assigned Resource.
  2. Optimization never changes the SA Status. The Status moves from "None" to "Scheduled" only when an Assigned Resource is created. It moves back to "None" when the Assigned Resource is removed. If the assignment fails, the Status is never promoted.
  3. Anything that makes the assignment step fail can cause this. Known scenarios:
    • Customization. A validation rule, flow, or Apex trigger the customer added to Assigned Resource blocks the assignment from being created or deleted.
    • Record lock. A dispatcher manually updated the SA, which locked the record. The same SA was part of an optimization request at that time. The optimization engine couldn't access the SA and returned "(unable to obtain exclusive access to this record)".
Resolution
  1. Confirm the state: the SA has scheduled times, no Assigned Resource, and Status "None".
  2. If a customization is the cause, review the validation rules, flows, and triggers on Assigned Resource. Fix or bypass logic that blocks create or delete during optimization.
  3. If a record lock is the cause, compare the SA's LastModifiedDate and LastModifiedById with the optimization request time to confirm a concurrent update.To prevent recurrence, make sure manual updates to SAs by dispatchers or other users don't overlap with optimization requests. Schedule optimization jobs during periods of low dispatcher activity or outside peak hours for the service territory.
  4. Repair the SA by re-scheduling it so a valid Assigned Resource is created and the Status updates. Clear incorrect times first if needed.
  5. Re-run optimization for the service territory.
Knowledge Article Number

005461493

 
Loading
Salesforce Help | Article