Genesys Cloud - Developer Community!

 View Only

Sign Up

Plan does not show/warn/fail when duplicate DNIS is added in architect_ivr

  • 1.  Plan does not show/warn/fail when duplicate DNIS is added in architect_ivr

    Posted 09-10-2025 17:14

    Hi Team,

    We are facing the issue related to architect_ivr DNIS list. The Plan should show any DNIS duplicates as a part of validation, it fails at apply stage instead.

    # module.architect_ivr.genesyscloud_architect_ivr.aa-voice-poc will be updated in-place
      ~ resource "genesyscloud_architect_ivr" "aa-voice-poc" {
          ~ dnis                  = [
              + "+18xxxxxxxx",
                # (4 unchanged elements hidden)
            ]
            id                    = "xxxx"
            name                  = "AA-Voice-POC"
            # (6 unchanged attributes hidden)
        }
    
    Plan: 0 to add, 1 to change, 0 to destroy.

    Failure at apply stage

    │ Error: Exhausted retries. Last error: [{0 Failed to update IVR config xxxxxxx error: error performing update inside function uploadArchitectIvrWithChunkingLogic: API Error: 400 - The addresses '+18xxxxxxxx' is already assigned to the IVRConfig xxxxx. (xxxxxxx)
    ....
    │ 
    │   with module.architect_ivr.genesyscloud_architect_ivr.aa-voice-poc,
    │   on modules/architect_ivr/aa-voice-poc.tf line 1, in resource "genesyscloud_architect_ivr" "aa-voice-poc":
    │    1: resource "genesyscloud_architect_ivr" "aa-voice-poc" {

    We are working with many DNIS updates at once, it should show the warning/error at plan stage, so that developer can correct this.

    Thank you.

    Rohit S


    #CXasCode

    ------------------------------
    Rohit Sharma
    ------------------------------