Can anyone explain why the genesyscloud_wfm_user_schedule_group resource keeps failing with a 409 conflict when trying to apply via terraform? we are trying to automate the creation of schedule groups for our sydney team. the error happens during the apply step. provider version is 1.79.0. terraform version 1.6.5.
error: error creating wfm user schedule group: 409 conflict
response body: {“errors”:[{“code”:“duplicate_resource”,“message”:“a schedule group with this name already exists in the tenant”}]}
we checked the tenant. there is no schedule group with this name. we even tried deleting the old one manually via ui. still get 409.
here is the config snippet:
resource “genesyscloud_wfm_user_schedule_group” “sydney_ops” {
name = “sydney_ops_sg”
description = “ops schedule group”
shift_patterns {
id = “some-shift-pattern-id”
}
}
we are using github actions to deploy. the logs show the api call to /api/v2/wfm/users/schedulegroups returns 409. we tried adding a unique suffix to the name. still fails.
is this a known issue with the provider? or is there a cache issue on the gc side? we are in apac sydney region.
also, the api docs say that the name must be unique. but we are generating unique names using a timestamp. still getting conflicts.
we have tried:
- manual deletion via ui
- waiting 24 hours
- using different names
- checking for soft deletes in the api
nothing works. the error persists.
please advise. this is blocking our deployment pipeline. we need to get this resolved quickly as we are onboarding new agents next week.
thanks.