Stuck on deploying a new schedule group via the Genesys Cloud Terraform provider. The pipeline runs successfully in the dev environment, but fails during the apply phase in production.
Provider version 1.68.4. Region au-1. The error returns a 400 Bad Request with the message “Conflict: A schedule group with overlapping shifts already exists for this week.” The HCL defines a weekly recurring schedule for a specific user group.
The configuration looks correct. The genesyscloud_wfm_schedulegroup resource specifies the start time, duration, and user group ID. No other resources are being deployed concurrently. The API call to POST /api/v2/wfm/scheduling/schedulegroups is failing validation.
Is there a specific order required for creating schedule groups before assigning shifts? Or is this a known issue with the provider not handling idempotency correctly for recurring schedules? Any help appreciated.