Loading

While changing the Status 'In Progress' to 'On Site' it's throwing an Error: The Actual Start must be earlier than the Actual End

Udgivelsesdato: Aug 21, 2023
Beskrivelse
Sometimes users can face issues while changing the Status 'In Progress' to 'On site' Error: The Actual Start must be earlier than the Actual End. It will throw the following error

Screenshot 2023-07-09 142611.png
Løsning
The actual start of the Service Appointment should fall in between the scheduled start and scheduled end.

Lets suppose the value in the actual end was already filled which was outdated or past time. To give an overview on how these dates are filled,

1. The SA is created in the system with the early start and due date as per the business SLAs.
2. After the SA is scheduled > the system adds the values in the scheduled start and finish to the SA.
3. When the mobile engineer changes the status to in-progress(On Site) > Actual start gets updated.
4. When the Mobile Engineer changes the status to completed > Actual end gets completed.

Now refer to point 3 earlier > In this scenario the user tried changing the status to in-progress(On-Site). So the system will add the current time in the Actual start of the SA that is, with the current time. However, the value in the actual end was already filled which was outdated or past time.

Now while updating the SA status to in-progress Actual start in memory is the current datetime and the Actual end is the outdated or past time. So Actual Start > Actual End that is why the validation rule is triggered before the commit and you get an exception.

To fix the issue, Please removed the Actual Start and Actual End dates from the record. Saved the record and then changed the status to In-Progress(On-Site).

The record will get saved.
Vidensartikelnummer

000395833

 
Indlæser
Salesforce Help | Article