Terraform data source lookup failing for existing Genesys Cloud queue by name

I’m trying to set up some Terraform configurations to manage our WFM adherence flags and queue settings. I want to reference an existing queue without hardcoding its ID, so I’m using the genesyscloud_queue data source. The idea is to look up the queue by name and then use its ID in other resources.

Here’s the snippet I’m working with:

data "genesyscloud_queue" "wfm_adherence_queue" {
 name = "WFM Adherence Monitoring Queue"
}

resource "genesyscloud_routing_email_domain" "test_domain" {
 name = "test.example.com"
 # ... other config
}

When I run terraform plan, I get this error:

Error: Error looking up queue: Error making API request to Genesys Cloud: GET https://api.mypurecloud.com/api/v2/routing/queues?name=WFM+Adherence+Monitoring+Queue&pageSize=25&pageNumber=1 returned 404 Not Found

I’ve double-checked the name in the Genesys Cloud admin UI. It’s exactly “WFM Adherence Monitoring Queue”. No typos, no extra spaces. I can see it right there in the routing settings. I’m not sure why the API call is returning a 404. Is the data source doing a case-sensitive match? Or is there a pagination issue if there are many queues?

I’ve tried adding depends_on to make sure the queue exists before the lookup, but since it’s a data source, that shouldn’t matter. The queue has been there for months. I’m using the latest version of the Genesys Cloud Terraform provider. Any ideas on why the lookup is failing? I’m stuck on this step and can’t proceed with the rest of the config.