User Interface Error with one of our interfaces.

This only happens to one interface. Whenever you try to click on anything in design mode or edit anything in expression mode you get the above image. This is my expression mode code:

a!localVariables(
  local!selection:0,
  local!priority,
  local!search,
  local!date,
  {
    choose(
      local!selection+1,
      {
        a!richTextDisplayField(
          labelPosition: "COLLAPSED",
          value: {
            char(10),
            char(10),
            a!richTextItem(
              text: {
                "What do you need?"
              },
              color: "ACCENT",
              size: "LARGE"
            ),
            char(10),
            char(10)
          },
          align: "CENTER"
        ),
        a!columnsLayout(
          columns:{
            a!columnLayout(),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Create an SFN Order"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Enter a new order into the system"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!startProcessLink(
                    processModel: cons!MAP_PM_CREATE_ORDER
                  ),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Create an SFNS Order"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Enter a new order for SFNS into the system"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!startProcessLink(
                    processModel: cons!SFNS_PROCESS_MODEL
                  ),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Create an SFNG Order"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Enter a new order for SFNG into the system"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!startProcessLink(),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout()

          }
        )
      },
      {
        a!richTextDisplayField(
          value:a!richTextItem(
            text:{
              a!richTextIcon(icon:"arrow-left"),
              " Go Back"
            },
            link:a!dynamicLink(value:0,saveInto: local!selection)
          )
        ),
        rule!MAP_ordersGrid(
          priority: local!priority,
          search: local!search,
          date: local!date
        )
      },
      {
        a!richTextDisplayField(
          value:a!richTextItem(
            text:{
              a!richTextIcon(icon:"arrow-left"),
              " Go Back"
            },
            link:a!dynamicLink(value:0,saveInto: local!selection)
          )
        ),
        rule!TKV_MyTasks(batchSize: 10)
      }
    )
  }
)

Please help us this is a huge blocker for our team currently. 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Can you paste a portion of the full code into your interface? Best I can tell there's 3 potential things that show based on a choose function - do any of the 3 parts work on their own? You should be able to add items until they break to identify what in your interface is causing the error.

  • It has a problem with what seems to be every section of the choose statement. I have no clue what is going on with this error. 

  • Being a developer for so long I have never found an error that has been so vague. 

  • Ok last thing I'm wondering about - does this SAIL expression work in another interface or does it give you the same error? If it works in another interface, you could at least paste it there and update any objects to reference the new interface.

    If that doesn't work, then you may need to open a support ticket. It does seem like a strange issue :(

  • SAIL is the expression language we use in Appian - I just mean copying the full expression shown at the top into another interface.

  • Yes that does not work it just spits back the same error before even loading the interface. How can I open a support ticket?

  • I was able to find one thing, on a previous page where the button links to that it gives me an error that states it cant go to design mode because:

    Cannot load Design Mode

    Invalid parameter at function ’’MAP_createOrderInterface’’ [line 207]: The following parameters do not exist: 'priority', 'search', 'date'

  • This is even though the parameters are specified at the top of that page as well

  • Here is the code for MAP_dashboard that leads into MAP_createOrderInterface:

    a!localVariables(
      local!selection:0,
      local!priority,
      local!search,
      local!date,
      {
      a!billboardLayout(
        backgroundMedia: a!documentImage(
            document: cons!MAP_DOC_HEADER_IMAGE[2]
        ),
        backgroundColor: "#f0f0f0",
        height: "SHORT",
        overlay: a!barOverlay(
          contents: {
            a!richTextDisplayField(
              label: "Rich Text",
              labelPosition: "COLLAPSED",
              value: {
                a!richTextItem(
                  text: {
                    "Source Foundation Geomatics Production Management Tool "
                  },
                  size: "LARGE"
                )
              }
            )
          }
        )
      ),
      choose(
        local!selection+1,
        {
        a!richTextDisplayField(
          labelPosition: "COLLAPSED",
          value: {
            char(10),
            char(10),
            a!richTextItem(
              text: "What do you need to do?",
              color: "ACCENT",
              size: "LARGE"
            ),
            char(10),
            char(10)
          },
          align: "CENTER"
        ),
        a!columnsLayout(
          columns:{
            a!columnLayout(),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        a!richTextIcon(
                          icon: "pencil-square-o",
                          color: "#8CA1D0",
                          size: "LARGE"
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Create Order"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Enter a new order into the system"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!dynamicLink(
                    value:1,
                    saveInto: local!selection
                  ),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        a!richTextIcon(
                          icon: "list-ul",
                          color: "#8CA1D0",
                          size: "LARGE"
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "View Orders"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Track and update existing orders"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!dynamicLink(
                    value:2,
                    saveInto: local!selection
                  ),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout(
              contents: {
                a!cardLayout(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        char(10),
                        char(10),
                        a!richTextIcon(
                          icon: "check-square-o",
                          color: "#8CA1D0",
                          size: "LARGE"
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "Process Orders"
                          },
                          color: "ACCENT",
                          size: "LARGE",
                          style: {
                            "STRONG"
                          }
                        ),
                        char(10),
                        char(10),
                        a!richTextItem(
                          text: {
                            "View and complete tasks assigned to you"
                          },
                          size: "SMALL"
                        )
                      },
                      align: "CENTER"
                    )
                  },
                  link: a!dynamicLink(
                     value:3,
                     saveInto: local!selection
                  ),
                  height: "MEDIUM"
                )
              },
              width: "MEDIUM"
            ),
            a!columnLayout()
    
          }
        )
      },
        {
          a!richTextDisplayField(
            value:a!richTextItem(
              text:{
                a!richTextIcon(icon:"arrow-left"),
                " Go Back"
              },
              link:a!dynamicLink(value:0,saveInto: local!selection)
            )
          ),
          rule!MAP_createOrderInterface(
            priority: local!priority,
            search: local!search,
            date: local!date
          )
        },
        {
          a!richTextDisplayField(
            value:a!richTextItem(
              text:{
                a!richTextIcon(icon:"arrow-left"),
                " Go Back"
              },
              link:a!dynamicLink(value:0,saveInto: local!selection)
            )
          ),
          rule!MAP_ordersGrid(
            priority: local!priority,
            search: local!search,
            date: local!date
          )
        },
        
        {
          a!richTextDisplayField(
            value:a!richTextItem(
              text:{
                a!richTextIcon(icon:"arrow-left"),
                " Go Back"
              },
              link:a!dynamicLink(value:0,saveInto: local!selection)
            )
          ),
          rule!TKV_MyTasks(batchSize: 10)
        }
      )
    }
    )