You are currently reviewing an older revision of this page.

DRAFT KB-XXXX HTTP 500 Error Thrown on Forms When Trying to Add validationGroup

Symptoms

Appian throws an HTTP 500 error when the user attempts to add a validationGroup property to the a!buttonWidgetSubmit. However, this appears to only happen when the property is added before the saveInto property, and beneath the label property.

More specifically, the user will see this error if 'validationGroup' is added before 'saveInto' without adding an ending comma.  Appian throws the following HTTP 500 error:

 

An example of the code that might throw this error is the following:

load(
  local!button,
  a!formLayout(
    label: "Label",
    contents: {
      
    },
    buttons: {
      a!buttonLayout(
        primaryButtons:  {
          a!buttonWidgetSubmit(
            label: "Submit",
            validationGroup: "test",
            saveInto: {
              a!save(local!button, 1)
            }
          )
        }
      )
    }
  )
)

This error is only thrown when "validationGroup" is being typed out in the position in between 'label' and 'saveInto'. If one copies and pastes this code into an Interface Designer, for example, the error will not be reproduced.

Cause

 

Action

A workaround to this issue is to add the 'validationGroup' property after 'saveInto'. This can be achieved such as the following code:

load(
  local!button,
  a!formLayout(
    label: "Label",
    contents: {
      
    },
    buttons: {
      a!buttonLayout(
        primaryButtons:  {
          a!buttonWidgetSubmit(
            label: "Submit",
            saveInto: {
              a!save(local!button, 1),
              validationGroup: "test"
            }
          )
        }
      )
    }
  )
)

If 'validationGroup' is placed after 'saveInto' this error will not show up.

Affected Versions

Appian 17.2 and above.