Didn't understand the error.

Certified Associate Developer

This error popped up when i was trying some things in the interface, now i'm stuck with this error i don't know what this error means, can anyone help me understand about this error.

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    You have a wizard layout somewhere in the code. Do a ctrl+f and search for wizard. It will lead you to the code causing this error. You can comment that code and then see if the error goes away 

  • 0
    Certified Lead Developer

    The error occurs because you’re trying to place both a wizard layout and form layout inside the same array, which Appian prohibits. These layout components cannot coexist in an array structure.
    To fix this, remove the curly braces wrapping your layouts and choose only one main layout component.  You need to decide which layout serves your purpose better and remove the other one entirely. 

  • 0
    Certified Associate Developer
    in reply to Shubham Aware

    a!localVariables(
    local!benefits,
    {a!wizardLayout(
    titleBar: a!headerTemplateSimple(
    title: if(
    ri!isUpdate,
    "Update Post Job",
    "Add New Job"
    ),
    secondaryText: if(
    ri!isUpdate,
    "Update details for the post job",
    "Enter details of the job posting"
    ),
    titleColor: "STANDARD",
    stampIcon: ""
    ),
    isTitleBarFixed: true,
    backgroundColor: "#fbfbfb",
    steps: {
    a!wizardStep(
    label: "Details",
    contents: {
    a!cardLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!textField(
    label: "Company Name",
    labelPosition: "ABOVE",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
    characterLimit: 255,
    showCharacterCount: false,
    required: true
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Skills Needed",
    labelPosition: "ABOVE",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
    characterLimit: 255,
    showCharacterCount: false,
    required: true,
    marginAbove: "LESS"
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
    choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
    label: "Min. Experience (Yrs)",
    labelPosition: "ABOVE",
    placeholder: "--- Select Experience ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Full-TIme", "Part-Time", "Contract", "Internship"},
    choiceValues: {"Full-TIme", "Part-Time", "Contract", "Internship"},
    label: "Job Type",
    labelPosition: "ABOVE",
    placeholder: "--- Select Job Type ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"On-Site", "Remote", "Hybrid"},
    choiceValues: {"On-Site", "Remote", "Hybrid"},
    label: "Remote",
    labelPosition: "ABOVE",
    placeholder: "--- Select Remote ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"IT Services and IT Consulting", "Professional Services"},
    choiceValues: {"IT Services and IT Consulting", "Professional Services"},
    label: "Industry",
    labelPosition: "ABOVE",
    placeholder: "--- Select Industry ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
    choiceValues: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
    label: "Job Function",
    labelPosition: "ABOVE",
    placeholder: "--- Select Job Function ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
    choiceValues: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
    label: "Title",
    labelPosition: "ABOVE",
    placeholder: "--- Select Title ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!multipleDropdownField(
    choiceLabels: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
    choiceValues: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
    label: "Benifits",
    labelPosition: "ABOVE",
    placeholder: "--- Select Benefits ---",
    value: local!benefits,
    saveInto: local!benefits,
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!multipleDropdownField(
    choiceLabels: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
    choiceValues: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
    label: "Commitment",
    labelPosition: "ABOVE",
    placeholder: "--- Select Commitments ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    )
    },
    width: "WIDE"
    )
    }
    )
    },
    style: "NONE",
    shape: "SEMI_ROUNDED",
    padding: "MORE"
    )
    }
    ),
    a!wizardStep(
    label: "Location",
    contents: {
    a!cardLayout(
    contents: {
    a!gridLayout(
    label: "Location",
    labelPosition: "COLLAPSED",
    instructions: "Enter locations for the post job",
    headerCells: {
    a!gridLayoutHeaderCell(label: "Location"),
    a!gridLayoutHeaderCell()
    },
    columnConfigs: {
    a!gridLayoutColumnConfig(width: "NARROW_PLUS"),
    a!gridLayoutColumnConfig(width: "ICON")
    },
    rows: a!forEach(
    items: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
    expression: a!gridRowLayout(
    id: fv!index,
    contents: {
    a!textField(
    value: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
    saveInto: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
    characterLimit: 255,
    showCharacterCount: false
    ),
    a!imageField(
    images: a!documentImage(
    document: a!iconIndicator(icon: "REMOVE"),
    altText: "Remove Row" & char(32) & fv!index + 1,
    link: a!dynamicLink(
    value: fv!index,
    saveInto: {
    a!save(
    ri!deletedLocationRecords,
    if(
    a!isNotNullOrEmpty(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'][save!value]['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{1f09a335-8419-4f2d-a33a-c2043528b38d}locationId']),
    append(ri!deletedLocationRecords, ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'][save!value]),
    ri!deletedLocationRecords
    )
    ),
    a!save(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
    remove(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
    save!value
    )
    )
    }
    )
    ),
    size: "ICON"
    )
    }
    )
    ),
    height: "AUTO",
    addRowLink: a!dynamicLink(
    label: "Add Row",
    value: 'recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location'(),
    saveInto: a!save(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
    append(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
    save!value
    )
    )
    ),
    shadeAlternateRows: false,
    borderStyle: "LIGHT",
    rowHeader: 1
    )
    },
    style: "NONE",
    shape: "SEMI_ROUNDED",
    padding: "MORE"
    )
    }
    )
    },
    primaryButtons: a!buttonWidget(
    label: if(
    ri!isUpdate,
    "Save",
    "Create"
    ),
    submit: true,
    style: "SOLID",
    saveInto: {
    a!save(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}benifits'],
    tostring(local!benefits))
    },
    showWhen: fv!isLastStep,
    validate: true
    ),
    secondaryButtons: a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "LINK",
    validate: false
    ),
    showButtonDivider: true
    )})

    .

    .

    .

    .

    This is my code which i used and when i used it before it did work and then later i was trying some other possibilities and when i ran the old code then it suddenly started showing me this.

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    i did, but i didnt see any error in shown in the line.

  • 0
    Certified Lead Developer
    in reply to skzahed_09

    Its recommended to use actions Insert->code whenever putting a code in Community for easier readability! 

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    a!localVariables(
      local!benefits,
      {a!wizardLayout(
        titleBar: a!headerTemplateSimple(
          title: if(
            ri!isUpdate,
            "Update Post Job",
            "Add New Job"
          ),
          secondaryText: if(
            ri!isUpdate,
            "Update details for the post job",
            "Enter details of the job posting"
          ),
          titleColor: "STANDARD",
          stampIcon: ""
        ),
        isTitleBarFixed: true,
        backgroundColor: "#fbfbfb",
        steps: {
          a!wizardStep(
            label: "Details",
            contents: {
              a!cardLayout(
                contents: {
                  a!columnsLayout(
                    columns: {
                      a!columnLayout(
                        contents: {
                          a!columnsLayout(
                            columns: {
                              a!columnLayout(
                                contents: {
                                  a!textField(
                                    label: "Company Name",
                                    labelPosition: "ABOVE",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
                                    characterLimit: 255,
                                    showCharacterCount: false,
                                    required: true
                                  )
                                }
                              ),
                              a!columnLayout(
                                contents: {
                                  a!textField(
                                    label: "Skills Needed",
                                    labelPosition: "ABOVE",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
                                    characterLimit: 255,
                                    showCharacterCount: false,
                                    required: true,
                                    marginAbove: "LESS"
                                  )
                                }
                              )
                            }
                          ),
                          a!columnsLayout(
                            columns: {
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                    choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                    label: "Min. Experience (Yrs)",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Experience ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              ),
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                    choiceValues: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                    label: "Job Type",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Job Type ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              )
                            }
                          ),
                          a!columnsLayout(
                            columns: {
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {"On-Site", "Remote", "Hybrid"},
                                    choiceValues: {"On-Site", "Remote", "Hybrid"},
                                    label: "Remote",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Remote ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              ),
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {"IT Services and IT Consulting", "Professional Services"},
                                    choiceValues: {"IT Services and IT Consulting", "Professional Services"},
                                    label: "Industry",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Industry ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              )
                            }
                          ),
                          a!columnsLayout(
                            columns: {
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                    choiceValues: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                    label: "Job Function",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Job Function ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              ),
                              a!columnLayout(
                                contents: {
                                  a!dropdownField(
                                    choiceLabels: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                    choiceValues: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                    label: "Title",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Title ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              )
                            }
                          ),
                          a!columnsLayout(
                            columns: {
                              a!columnLayout(
                                contents: {
                                  a!multipleDropdownField(
                                    choiceLabels: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
                                    choiceValues: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
                                    label: "Benifits",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Benefits ---",
                                    value: local!benefits,
                                    saveInto: local!benefits,
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              ),
                              a!columnLayout(
                                contents: {
                                  a!multipleDropdownField(
                                    choiceLabels: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                    choiceValues: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                    label: "Commitment",
                                    labelPosition: "ABOVE",
                                    placeholder: "--- Select Commitments ---",
                                    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
                                    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
                                    searchDisplay: "AUTO",
                                    required: true,
                                    validations: {}
                                  )
                                }
                              )
                            }
                          )
                        },
                        width: "WIDE"
                      )
                    }
                  )
                },
                style: "NONE",
                shape: "SEMI_ROUNDED",
                padding: "MORE"
              )
            }
          ),
          a!wizardStep(
            label: "Location",
            contents: {
              a!cardLayout(
                contents: {
                  a!gridLayout(
                    label: "Location",
                    labelPosition: "COLLAPSED",
                    instructions: "Enter locations for the post job",
                    headerCells: {
                      a!gridLayoutHeaderCell(label: "Location"),
                      a!gridLayoutHeaderCell()
                    },
                    columnConfigs: {
                      a!gridLayoutColumnConfig(width: "NARROW_PLUS"),
                      a!gridLayoutColumnConfig(width: "ICON")
                    },
                    rows: a!forEach(
                      items: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
                      expression: a!gridRowLayout(
                        id: fv!index,
                        contents: {
                          a!textField(
                            value: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
                            saveInto: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
                            characterLimit: 255,
                            showCharacterCount: false
                          ),
                          a!imageField(
                            images: a!documentImage(
                              document: a!iconIndicator(icon: "REMOVE"),
                              altText: "Remove Row" & char(32) & fv!index + 1,
                              link: a!dynamicLink(
                                value: fv!index,
                                saveInto: {
                                  a!save(
                                    ri!deletedLocationRecords,
                                    if(
                                      a!isNotNullOrEmpty(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'][save!value]['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{1f09a335-8419-4f2d-a33a-c2043528b38d}locationId']),
                                      append(ri!deletedLocationRecords, ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'][save!value]),
                                      ri!deletedLocationRecords
                                    )
                                  ),
                                  a!save(
                                    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
                                    remove(
                                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
                                      save!value
                                    )
                                  )
                                }
                              )
                            ),
                            size: "ICON"
                          )
                        }
                      )
                    ),
                    height: "AUTO",
                    addRowLink: a!dynamicLink(
                      label: "Add Row",
                      value: 'recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location'(),
                      saveInto: a!save(
                        ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
                        append(
                          ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{44375413-23eb-4e4f-aba3-51aeaf52c7b9}location'],
                          save!value
                        )
                      )
                    ),
                    shadeAlternateRows: false,
                    borderStyle: "LIGHT",
                    rowHeader: 1
                  )
                },
                style: "NONE",
                shape: "SEMI_ROUNDED",
                padding: "MORE"
              )
            }
          )
        },
        primaryButtons: a!buttonWidget(
          label: if(
            ri!isUpdate,
            "Save",
            "Create"
          ),
          submit: true,
          style: "SOLID",
          saveInto: {
            a!save(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}benifits'],
            tostring(local!benefits))
          },
          showWhen: fv!isLastStep,
          validate: true
        ),
        secondaryButtons: a!buttonWidget(
          label: "Cancel",
          value: true,
          saveInto: ri!cancel,
          submit: true,
          style: "LINK",
          validate: false
        ),
        showButtonDivider: true
      )})

    like this ?

  • 0
    Certified Lead Developer
    in reply to skzahed_09

    Remove the curly braces before and after the wizardLayout and check! 

    a!localVariables(
      local!benefits,
      a!wizardLayout(...))

  • 0
    Certified Associate Developer
    in reply to Harsha Sharma

    Yes, that was it. Thank you very much for your guidance.

  • 0
    Certified Lead Developer
    in reply to skzahed_09

    Happy to help! 
    For context,  wizardLayout, formlayout etc cannot be in an array. the curly braces signifies a list of items (i.e. an array) which is not allowed for these components. Hence the error.