Legacy Dev Forum Posts

 View Only

Sign Up

Archy Messenger Error. Variable declared read only?

  • 1.  Archy Messenger Error. Variable declared read only?

    Posted 06-05-2025 19:04

    BasilioJrGuevarra | 2024-02-12 14:56:26 UTC | #1

    Error in Archy. Variables in Archy is set to read only?

    Sample code:

    inboundShortMessage:
      name: IONOS_POC_Messaging
      description: POC for new messaging
      division: IONOS_All_GCA
      startUpRef: "/inboundShortMessage/states/state[initialstate]"
      defaultLanguage: en-us
      supportedLanguages:
        en-us:
          defaultLanguageSkill:
            noValue: true
      settingsErrorHandling:
        errorHandling:
          queue:
            targetQueue:
              lit:
                name: IONOS_Chat
      variables:
        - stringVariable:
            name: Flow.FlowName
            description: Name of the flow
    
        - stringVariable:
            name: Flow.Version
            description: Version of the flow
      states:
        - state:
            name: Initial State
            refId: initialstate
            actions:
              - setParticipantData:
                  attributes:
                    - attribute:
                        name:
                          lit: Version Flow
                        value:
                          exp: Flow.Version
              - disconnect:
                  name: Disconnect

    When run it gives an error.

    'Flow.Version' cannot be referenced in the 'variables' section since is a read-only variable and does not support setting an initial value. YAML: 
    stringVariable:
      name: "Flow.Version"
      description: "Version of the flow"
    
        Path: '/inboundShortMessage/variables/stringVariable'
        Property name: 'stringVariable

    I noticed, that when I create the variable in the UI and export it as yaml. It works just fine in Archy. However, when creating the variable in Archy and deploying it to Genesys, error occurs.


    jon.vansteen | 2024-02-12 14:47:52 UTC | #2

    Hi @BasilioJrGuevarra,

    Thanks for reaching out! I will check into this. Just a couple quick questions, are you running the create, update or publish command when you seeing this error? Additionally, if using update or publish is this updating an already existing flow?

    Thanks, Jon


    BasilioJrGuevarra | 2024-02-12 14:55:21 UTC | #3

    jon.vansteen, post:2, topic:24597
    d when you

    Hello Jon,

    Thank you for quick response. I'm using archy publish. And yes, it's updating an existing flow.


    jon.vansteen | 2024-02-12 18:28:31 UTC | #4

    @BasilioJrGuevarra,

    So Flow.Version is a built in system variable for Architect (https://help.mypurecloud.com/articles/architect-default-variables/) so it is true that this variable is read only and cant be modified.

    However, it does appear to be a bug within Archy where if there is a system variable defined within the variables section of the YAML, it is erroring out incorrectly and should instead allow for the publish to continue. I'll create a ticket for this and work on fixing this.

    Thanks for reporting this!

    \- Jon


    BasilioJrGuevarra | 2024-02-23 12:17:01 UTC | #5

    Btw, do we have any estimated date when will it be fixed?


    jon.vansteen | 2024-02-23 13:16:44 UTC | #6

    @BasilioJrGuevarra,

    Hoping to get a fix out either next week or the following.

    Thanks, Jon


    system | 2024-03-24 13:16:59 UTC | #7

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


    This post was migrated from the old Developer Forum.

    ref: 24597