Expression There was an error in an expression in User Input Task at: Neither Variable(s) nor rule(s) found : contents

Hi everyone 

i have an issue that i don't understand i create a user input task with an interface ,  but when i m trying  to save the process  , it is throwing an error of type : Expression There was an error in an expression in User Input Task at: Neither Variable(s) nor rule(s) found : contents . 

What does it mean if someone know  ??? and How i need to fixed that ?? i attached my code of the interface if it is helping 

 

 

a!localVariables(
  local!currentStep: 1,

 local!remark,
    
 a!formLayout(
   label: "Task",
   contents:{
     a!sectionLayout(
       contents:{
         a!sectionLayout(
           label: "",
           contents: {
             a!radioButtonField(
               label: "בחר פעולה",
               labelPosition: "ABOVE",
               choiceLabels: {"העברה לחיתום", "העברה לבדיקה נוספת", "דחיה"},
               choiceValues: {1, 2, 3},
               saveInto: {},
               choiceLayout: "STACKED",
               validations: {}
             )
           }
         )
       }
     ),
     a!sectionLayout(
       contents:{
         a!columnsLayout(
           columns:{
             a!columnLayout(
               contents:{
                 a!paragraphField(
                   label: "הערה",
                   labelPosition: "ABOVE",
                   value: local!remark,
                   saveInto:  local!remark,
                   refreshAfter: "UNFOCUS",
                   height: "MEDIUM",
                   validations: {}
                 ),
                 a!buttonArrayLayout(
                   buttons: {
                     a!buttonWidget(
                       label: "שמור",
                       saveInto: {
                         a!save(ri!remarks.Remark,local!remark),
                         a!save(ri!remarks.Canceled,false()),
                         a!save(ri!remarks.Date_Created,now()),
                         a!save(ri!remarks.Created_By_User,user(loggedInUser(),"username")),
                         a!save(ri!remarks.Created_By_GroupName,group(132,"groupName"))
                       },
                       style: "NORMAL"
                     )
                   },
                   align: "START"
                 )
               
               }
             )
           }
         )
       }
     ),
     {
       a!localVariables(
         local!selectedTab: 1,
         {
           {
             choose(
               local!selectedTab,
               {},
               {},
               {
                 /* Replace this rich text with the component or rule that should populate this tab */
                 a!richTextDisplayField(
                   labelPosition: "COLLAPSED",
                   value: {a!richTextItem(text: "The contents of the third tab would go here", style: "EMPHASIS")},
                   align: "CENTER"
                 )
               }
             ),
             {
               /* If using this tab style in a headerContentLayout,              *
                 * remove header, put expression below in the contents parameter, *
                 * and set backgroundColor to transparent. Then, on the parent    *
                 * cardLayout, set showBorder to false and showShadow to true.    */
               a!localVariables(
                 local!tabs: { "פרטי המבקש", "פרטי הבקשה", "נתנוי דירוג והמלצה","מסמכי הלקוח" },
                 local!activeTab: 1,
                 a!cardLayout(
                   contents: {
                     a!cardLayout(
                       contents: {
                         a!columnsLayout(
                           columns: {
                             a!forEach(
                               local!tabs,
                               a!columnLayout(
                                 contents: {
                                   a!cardLayout(
                                     contents: {
                                       a!richTextDisplayField(
                                         value: {
                                           a!richTextItem(
                                             text: local!tabs[fv!index],
                                             color: if(
                                               fv!index = local!activeTab,
                                               "STANDARD",
                                               "ACCENT"
                                             ),
                                             size: "STANDARD",
                                             style: if(
                                               fv!index = local!activeTab,
                                               "STRONG",
                                               "PLAIN"
                                             )
                                           )
                                         },
                                         align: "CENTER"
                                       )
                                     },
                                     link: a!dynamicLink(
                                       value: fv!index,
                                       saveInto: local!activeTab
                                     ),
                                     padding: "LESS",
                                     showBorder: false,
                                     decorativeBarPosition: "BOTTOM",
                                     decorativeBarColor: if(
                                       fv!index = local!activeTab,
                                       "ACCENT",
                                       "#fff"
                                     ),
                                     accessibilityText: if(
                                       fv!index = local!activeTab,
                                       "Selected Tab.",
                                       "Unselected Tab. Press enter to select tab."
                                     )
                                   )
                                 },
                                 width: "NARROW"
                               )
                             )
                           },
                           marginBelow: "NONE",
                           spacing: "NONE"
                         ),
                         a!cardLayout(padding: "NONE")
                       },
                       padding: "NONE",
                       showBorder: false
                     ),

                     a!cardLayout(
                       contents: choose(
                         local!activeTab,
                         {
                           /* Replace this rich text with the component or rule that should populate this tab */
                           rule!PA_Reusable_Client_details(ri!customer)

                         },
                         {
                           /* Replace this rich text with the component or rule that should populate this tab */


                           rule!PA_Reusable_Information_Credit_Request(ri!creditRequest)

                        
                         },
                         {


                           /* Replace this rich text with the component or rule that should populate this tab */

                           rule!PA_reusable_interface_DB_Pratiks_data()

                         },
                         {
                           a!sideBySideLayout(
                             items: {
                               a!sideBySideItem(
                                 item: a!documentViewerField(
                                   label: "Document Viewer",
                                   labelPosition: "ABOVE",
                                   document: 5889,
                                   height: "MEDIUM"
                                 )
                               )

                             }
                           )
                           /* Replace this rich text with the component or rule that should populate this tab */
                         
                         }
                       ),
                       padding: "EVEN_MORE",
                       showBorder: false
                     )
                   },
                   padding: "NONE"
                 )
               )
             }
           }
         }
       )
     }

   },
   buttons: a!buttonLayout(
     primaryButtons: {
       a!buttonWidget(
         label: "Go Back",
         value: local!currentStep - 1,
         saveInto: local!currentStep,
         showWhen: or( local!currentStep = {2,3} )
       ),
       a!buttonWidget(
         label: if( local!currentStep = 1, "Next", "Go to Review"),
         value: local!currentStep + 1,
         saveInto: local!currentStep,
         showWhen: or( local!currentStep = {1,2} ),
         validate: true
       ),
       a!buttonWidget(
         label: "Onboard Employee",
         submit: true,
         style: "PRIMARY",
         showWhen: local!currentStep = 3
       )
     }
   )
 )
    
    
   
  
 

)

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer
    in reply to yanivb0001

    If this is the exact code you have written in the child interfaces, then let me tell you, you cannot use the key "contents" without any container layouts. Try removing that keyword and just keep the interface definition in curly braces. 

    {
      a!sectionLayout(
        label: "פרטי מבקש האשראי",
        contents: {
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  a!textField(
                    label: ": מזהה התאגדות",
                    labelPosition: "ADJACENT",
                    value: ri!customer.Identification_Itagdout,
                    saveInto:  ri!customer.Identification_Itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  ),
                  a!textField(
                    label: ":שם התאגדות",
                    labelPosition: "ADJACENT",
                    value:  ri!customer.Name_Itagdout,
                    saveInto:  ri!customer.Name_Itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  ),
                  a!textField(
                    label: ": טלפון ",
                    labelPosition: "ADJACENT",
                    value:  ri!customer.Telphone_itagdout,
                    saveInto: ri!customer.Telphone_itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  ),
                  a!textField(
                    label: ":מייל ",
                    labelPosition: "ADJACENT",
                    value:  ri!customer.Mail_itagdout,
                    saveInto: ri!customer.Mail_itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  )
                }
              ),
              a!columnLayout(
                contents: {
                  a!textField(
                    label: ": סוג התאגדות",
                    labelPosition: "ADJACENT",
                    value:  ri!customer.Type_Itagdout.Name_Incorporation_Type,
                    saveInto: ri!customer.Type_Itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  ),
                  a!textField(
                    label: ":תאריך התאגדות",
                    labelPosition: "ADJACENT",
                    value: ri!customer.Date_Itagdout,
                    saveInto:  ri!customer.Date_Itagdout,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  ),
                  a!textField(
                    label: ":מגזר פעילות",
                    labelPosition: "ADJACENT",
                    value:  ri!customer.Sector_Activity.Name_Activity,
                    saveInto: ri!customer.Sector_Activity,
                    refreshAfter: "UNFOCUS",
                    readOnly: true,
                    validations: {}
                  )
                }
              )
    
            }
          )
        }
      )
    }

    And do similar with the other interface. The error should then be resolved. 

  • Thank You Harshit !!!

    it is working !! it was as you said the "contents" keyword that was in plus 

  • This kind of issue is usually identified via design guidance in expressions: https://docs.appian.com/suite/help/21.4/appian-recommendations.html#expression-design-guidance (see the section on "invalid keyword syntax")

    You should actually see a warning at the top of your parent interface that can help you identify where the problem is.