Skip to main content
chriss4489
June 15, 2023
Question

Expression evaluation error: Syntax error.

  • June 15, 2023
  • 10 replies
  • 0 views

Receiving the following error on the Interface I am working on.:

"Expression evaluation error: Syntax error. Details: Expression evaluation error at function a!columnsLayout parameter 1 [line 285]: Keyword and non-keyword arguments must not be mixed. Used in: columnlayout."

Code mentioned is as follows:

    10 replies

    mathieud0001
    Brainy
    June 15, 2023

    I suspect you might be missing the "columns" keyword in the ColumnsLayout.

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {}
          ),
          a!columnLayout(
            contents: {}
          )
        }
      )
    }

    chriss4489
    June 16, 2023

    I thought the,

    a!columnsLayout(
    columns: {

    part was only for when you are starting a new column layout, then the beginning of each column withing that layout started with the,

    a!columnLayout(
    contents: {},

    I tried adding that, it didn't work.

    mathieud0001
    Brainy
    June 16, 2023

    Can you post a little more of the code?

    I think I might be missing a piece.

    harshitb6843
    June 16, 2023

    The error is pretty clear. If you are not able to identify it, please paste the code block instead of a screenshot. 

    chriss4489
    June 16, 2023

    Obviously if it was clear to me and I could identify it I wouldn't have posted the question on here. I posted in "New to Appian" because I am just that, as is the rest of my team, trying to migrate an app from another low code platform that I don't know. You could have just said, "Hey, I think I can help, can you please post the code block instead of a screenshot?" instead of being all condescending about it.

    June 16, 2023

    Hey, I'm sure the intention was not wrong there, the error messages in Appian are very meaningful and straight forward and it is easy to identify the issue by just reading them. I understand that you are a Newbie and can have a hard time figuring out what is going on sometimes but sometimes it is hard to notice that question is posted in "New to Appian" category and I'm sure this was the case here as well.

    I can easily reproduce this error when I try to provide a value to a parameter in columnLayout() without its keyword. Try to understand it this way, if you have provided a keyword to any of the parameter in a component then it is must that you have to provide the same for each parameter, o/w it will result in this error.

    Please see these different examples for more clear understanding and don't hesitate to share the code if you are not able to solve it.