[BUG] Error when removing bullseye routing

Given thes queue test_bullseye_routing_queue for which we activated the Bullseye routing:

We now wish to remove the Bullseye routing and the API returns this error:

 Error: Failed to update queue test_bullseye_routing_queue error: API Error: 400 - Queue bullseye ring 3 has members and cannot be removed. (0076c4a5-1883-4190-be3e-369fa3ebb865)
│
│   with genesyscloud_routing_queue.test_bullseye_routing_queue,
│   on division_test.tf.json line 6, in resource.genesyscloud_routing_queue.test_bullseye_routing_queue:
│    6:       }
│
│ {"resourceType":"genesyscloud_routing_queue","method":"PUT","path":"/api/v2/routing/queues/57e78f33-6571-43be-957f-0b44140a023a","statusCode":400,"errorMessage":"API
│ Error: 400 - Queue bullseye ring 3 has members and cannot be removed.
│ (0076c4a5-1883-4190-be3e-369fa3ebb865)","correlationId":"0076c4a5-1883-4190-be3e-369fa3ebb865"}

The problem is that a user has the associated skill skill_bullseye_testing, which is part of the bullseye_testing skill group, and it blocks the deletion of the member from happening.

This is the terraform we used. Removing the bullseye_rings out of the queue will reproduce the issue as long as a user is associated to the skill_bullseye_testing above 1 star:

{
  "resource": {
    "genesyscloud_routing_queue": {
	  "test_bullseye_routing_queue": {
        "name": "test_bullseye_routing_queue",
		"bullseye_rings": [
          {
            "expansion_timeout_seconds": 2,
            "member_groups": {
              "member_group_id": "${genesyscloud_routing_skill_group.skillgroup_test_languagesetter.id}",
              "member_group_type": "SKILLGROUP"
            }
          },
          {
            "expansion_timeout_seconds": 120,
            "member_groups": {
              "member_group_id": "${genesyscloud_routing_skill_group.skillgroup_bullseye_testing.id}",
              "member_group_type": "SKILLGROUP"
            }
          }
        ]
      }
    },
	"genesyscloud_routing_skill_group": {
	  "skillgroup_test_languagesetter": {
	    "description": "Generated for testing",
  	    "name": "test_LanguageSetter"
	  },
	  "skillgroup_bullseye_testing": {
	    "description": "Generated for testing",
		"name": "bullseye_testing",
		"division_id": "${genesyscloud_auth_division.division_test_bullseye.id}",
        "skill_conditions": "[{\"languageSkillConditions\": [], \"operation\": \"And\", \"routingSkillConditions\": [{\"childConditions\": [], \"comparator\": \"GreaterThanOrEqualTo\", \"proficiency\": 1, \"routingSkill\": \"skill_bullseye_testing\"}]}]"
	  }
	},
	"genesyscloud_routing_skill": {
	  "skill_bullseye_testing": {
        "name": "skill_bullseye_testing"
      }
	},
	"genesyscloud_auth_division": {
      "division_test_bullseye": {
        "description": "Test Bullseye",
        "home": false,
        "name": "DIVISION_TEST_BULLSEYE"
      }
    }
  }
}

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.