Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Error when using MyPureCloud/genesyscloud Terraform module

  • 1.  Error when using MyPureCloud/genesyscloud Terraform module

    Posted 10 hours ago

    Good afternoon, 

    I want to start using terrafom to manage and maintain my Architect flows. I was able to setup MyPureCloud/genesyscloud and am able to pull my flows and store them as .yaml files. 

    The issue is when I try and push my flow back to Genesys (even without making any changes). The inbound call flow I am using has "call Audio Connector" nodes in it. 
    As soon as I try and push it back to Genesys I get this error:

    find 'audio connector' by value of 'Name - prod' - Failed to find item Name - prod. -- [ArchNetworkValueRetrieval]

    │ promise unhandled exception caught.  Error: could not find the 'audio connector' by name using the value 'Name - prod'.
    │ Error details: Failed to fetch audio connector bots. -- [ArchAsyncTracker]

    │ could not find the 'audio connector' by name using the value 'Name prod'.
    │ Error details: Failed to fetch audio connector bots.

    If this was an permissions error I would expect a different error. Anybody have any experience with this? I have exported the flow from the architect UI and compared it to the one I pulled with Terraform and they are identical. 

    Regards, Michael 


    #Architect

    ------------------------------
    Michael Bessels
    ------------------------------


  • 2.  RE: Error when using MyPureCloud/genesyscloud Terraform module

    Posted 2 hours ago
    Edited by Breno Canyggia Ferreira Marreco 2 hours ago

    Hi Michael, I can think of three possible situations:

    1. What version are you using? I ask because support for the "Call Audio Connector" action was added in Archy version 2.28: https://developer.genesys.cloud/devapps/archy/changelog
    2. Are you moving flows between environments (Dev/Homologation and Prod)? If so, the Audio Connector Bot name may be different in each environment. You might need to translate or map environment-specific values in your Terraform files (dev, hom, prod).
    3. I have experienced issues when exporting flows manually from the Architect UI. Since then, I always export flows using Archy instead of the UI. It might be worth testing whether exporting and importing the flow exclusively through Archy changes the behavior.

      Based on the error message, it seems that Archy/Terraform is unable to resolve the Audio Connector Bot named "Name - prod" during the publish process. I would verify that the bot exists in the target org and that the account used by Terraform has permission to retrieve Audio Connector Bots. Hope this helps.



    ------------------------------
    Att,
    Breno Canyggia Ferreira Marreco
    ------------------------------