Applies to Product - Dynamics 365 Project Operations
What’s happening?
Customers are experiencing issues with editing work hours for bookable resources and editing resource assignment contours using the Project Schedule API. Errors may occur during the editing process, indicating that records are unavailable or that permissions are lacking.
Reason:
This arise when attempting to create daily working hours for a resource without using a recurrence, leading to the creation of a large number of calendars. This can cause performance issues and errors when trying to delete those calendars. Additionally, the editing of resource assignment contours may not reflect changes in the project due to incorrect settings or configurations.
Resolution:
When editing work hours for bookable resources, it is recommended to create a calendar using a recurrence (e.g., daily or weekly) for the resource. This approach minimizes the number of calendars created and avoids performance issues when copying calendars to other resources.
- If errors occur while deleting calendars, ensure that the deletion is not attempted while the record is still processing in the backend.
- Ensure that the schedule mode is set to "fixed duration."
- Verify that both the project calendar and resource calendar are correctly configured. For example, the project calendar should specify working hours, and the resource calendar should align with the project calendar.
- The assignment should be set for a duration that matches the resource calendar, such as one week with four hours a day.
- Use the resource assignment contour API to update the msdyn_plannedwork field on the msdyn_resourceassignment entity.
