Archy Messenger Error. Variable declared read only?

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.

Hi @Basilio_Jr_Guevarra,

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

Hello Jon,

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

@Basilio_Jr_Guevarra,

So Flow.Version is a built in system variable for Architect (Architect built-in variables - Genesys Cloud Resource Center) 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

1 Like

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

@Basilio_Jr_Guevarra,

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

Thanks,
Jon

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