Existing flow stopped working - Something went wrong. Try again later.
2

We have an existing flow that has worked for several months, but today running the flow gives error: 'Something went wrong. Try again later.' to the end user.

Has something changed in the last 24 hours?

The issue seems to be caused by a third "type": "If", that shows/hides a section.

Chris
Asked about 2 months ago
Chris

More clarity. It is a second level IF, which shows hides a section. If that section contains any input element the flow will fail. If we replace the input with a static text element it will work.

October 10 at 3:46 PM
Pablo

Here is the JSON with the error for this bug

{
  "version": "5.0",
  "screens": [
    {
      "id": "FIRST_SCREEN",
      "title": "Example",
      "terminal": true,
      "data": {
        "theDate": {
          "type": "string",
          "__example__": "2024-08-01"
        }
      },
      "layout": {
        "type": "SingleColumnLayout",
        "children": [
          {
            "type": "RadioButtonsGroup",
            "label": "Options",
            "required": true,
            "visible": true,
            "name": "optionsRadioGroup",
            "data-source": [
              {
                "id": "opt1",
                "title": "Option 1"
              },
              {
                "id": "opt2",
                "title": "Option2"
              }
            ],
            "init-value": "opt1"
          },
          {
            "type": "If",
            "condition": "${form.optionsRadioGroup} == 'opt1'",
            "then": [
              {
                "type": "RadioButtonsGroup",
                "name": "optionsRadioGroup2",
                "label": "Sub Options",
                "visible": true,
                "required": true,
                "init-value": "opt1",
                "data-source": [
                  {
                    "id": "opt1",
                    "title": "Option 1"
                  },
                  {
                    "id": "opt2",
                    "title": "Option2"
                  }
                ]
              },
              {
                "type": "If",
                "condition": "${form.optionsRadioGroup2} == 'opt2'",
                "then": [
                  {
                    "type": "TextInput",
                    "required": true,
                    "label": "Amount",
                    "input-type": "number",
                    "name": "amount",
                    "init-value": "10"
                  },
                  {
                    "type": "DatePicker",
                    "name": "theDate",
                    "required": true,
                    "label": "Date",
                    "min-date": "${data.theDate}",
                    "init-value": "${data.theDate}"
                  }
                ]
              }
            ]
          },
          {
            "type": "Footer",
            "label": "Submit",
            "on-click-action": {
              "name": "complete",
              "payload": {
              }
            }
          }
        ]
      }
    }
  ]
}
October 10 at 5:51 PM
Selected Answer
1

Hi Chris and Pablo, we landed a fix. It should be working right now. Let me know if it works as expected.

October 11 at 12:41 PM
Flávio