|
1 | 1 | --- |
2 | | -title: Locked booking is infeasible in Resource Scheduling Optimization |
| 2 | +title: Locked Booking is Infeasible in Resource Scheduling Optimization |
3 | 3 | description: Resolves issues with booking locks in the Resource Scheduling Optimization add-in for Microsoft Dynamics 365 Field Service. |
4 | 4 | ms.author: AnilMur |
5 | 5 | author: anilmur |
6 | 6 | ms.reviewer: mhart |
7 | | -ms.date: 02/04/2025 |
| 7 | +ms.date: 02/07/2025 |
8 | 8 | ms.custom: sap:Resource Scheduling Optimization |
9 | 9 | --- |
10 | 10 | # Locked booking is infeasible in Resource Scheduling Optimization |
11 | 11 |
|
12 | | -This article helps troubleshoot issues with booking locks in the [Resource Scheduling Optimization add-in](/dynamics365/field-service/rso-overview) for Microsoft Dynamics 365 Field Service. |
| 12 | +This article presents possible causes and a resolution for the "Locked booking is infeasible" error that occurs in the [Resource Scheduling Optimization add-in](/dynamics365/field-service/rso-overview) for Microsoft Dynamics 365 Field Service. |
13 | 13 |
|
14 | 14 | ## Symptoms |
15 | 15 |
|
16 | | -If a locked booking can't respect all defined constraints, the optimization request continues, but skips over the identified resources that have violations. The following error occurs: |
| 16 | +If a locked booking can't respect all defined constraints, the optimization request continues, but skips over the identified resources that have violations. The following error message occurs: |
17 | 17 |
|
18 | | -**System failed to optimize some records. Inner error(s): Locked booking is infeasible, reason: `Violation`. Tracing data points: `RequirementId`, `RequirementName`, `BookingId`, `BookingName`, `ScheduledTimeWindow`, `FullTimeWindow`, `ArrivalTime`, `Lock Type`** |
| 18 | +> System failed to optimize some records. Inner error(s): Locked booking is infeasible, reason: Violation. Tracing data points: RequirementId, RequirementName, BookingId, BookingName, ScheduledTimeWindow, FullTimeWindow, ArrivalTime, Lock Type |
19 | 19 |
|
20 | 20 | ## Cause |
21 | 21 |
|
22 | | -The tracing data points in the message help you identify what went wrong. The violation types include: |
| 22 | +The tracing data points in the error message help you identify what went wrong. The violation types include: |
23 | 23 |
|
24 | | -- The locked booking can't fulfill the time window filter. |
| 24 | +- A locked booking can't fulfill the _Lock Booking Time Window_ or _Resource Break Time Window_ filter. The scenarios inlcude: |
25 | 25 |
|
26 | | - - **LockBookingTimeWindowFilter**. Potential scenarios: |
27 | | - - Locked booking is outside of resource working hours |
28 | | - - Invalid promised time window |
29 | | - - Invalid travel time |
| 26 | + - The locked booking is outside of resource working hours. |
| 27 | + - Invalid promised time window. |
| 28 | + - Invalid travel time. |
| 29 | + - Conflicts with a [scheduled break time](/dynamics365/field-service/set-up-bookable-resources#add-work-hours). |
30 | 30 |
|
31 | | - - **ResourceBreakTimeWindowFilter**. A locked booking conflicts with a [scheduled break time](/dynamics365/field-service/set-up-bookable-resources#add-work-hours). |
| 31 | +- The eligibility check fails with a [constraint](/dynamics365/field-service/rso-optimization-goal#understand-constraints): |
32 | 32 |
|
33 | | -- The eligibility check failed with constraint. |
34 | | - |
35 | | - - **MeetsRequiredSkills**. A locked booking has an invalid match of the [resource skill characteristics](/dynamics365/field-service/set-up-characteristics). |
36 | | - |
37 | | - - **MeetsRequiredRoles**. A locked booking has an invalid [resource role match](/training/modules/configure-bookable-resources-urs-dynamics-field-service/). |
38 | | - |
39 | | - - **MeetsResourcePreferences**. A locked booking has an invalid ['must choose from' or 'restricted' resource](/dynamics365/field-service/resource-preferences). |
| 33 | + - **Meets Required Skills**. A locked booking has an invalid match of the [resource skill characteristics](/dynamics365/field-service/set-up-characteristics). |
| 34 | + - **Meets Required Roles**. A locked booking has an invalid [resource role match](/training/modules/configure-bookable-resources-urs-dynamics-field-service/). |
| 35 | + - **Meets Resource Preferences**. A locked booking has an invalid ['must choose from' or 'restricted' resource](/dynamics365/field-service/resource-preferences). |
40 | 36 |
|
41 | 37 | ## Resolution |
42 | 38 |
|
43 | | -Update the booking settings to address the violation reason and then run Resource Scheduling Optimization again. |
| 39 | +To solve the issue, update the booking settings and then rerun the Resource Scheduling Optimization: |
| 40 | + |
| 41 | +1. Navigate to **Resource Scheduling** > **Settings** > **Administration** > **Scheduling Parameter** > **Resource Scheduling Optimization**. |
| 42 | +1. Adjust the settings to resolve the identified violation. For example, update the time window, adjust resource skills, and so on. |
| 43 | +1. Save the changes and [run the optimization process](/dynamics365/field-service/rso-run-optimization) again. |
0 commit comments