Hello.
I am getting the following error when attempting to import an excel workbook into Appian.
From the Interface screen (FYI... I do not have a Line 41)
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!fileUploadField [line 6]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!multipleFileUploadField_getEvalFileName [line 41]: Unexpected number of parameters.
a!formLayout( label: "Import Excel Details Report", contents: { a!sectionLayout( contents: { a!fileUploadField( label: "File Upload", labelPosition: "ABOVE", value: ri!ExcelData, saveInto: ri!ExcelData, target: cons!Excel_imported_files_pointer, fileNames: "Excel Data " & now() & " " & user(), validations: {} ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Import", submit: true, style: "PRIMARY" ) }, secondaryButtons: { a!buttonWidget( label: "Cancel", value: true, saveInto: ri!cancel, submit: true, style: "NORMAL", validate: false ) } ))
Discussion posts and replies are publicly visible
In file name parameter you had used user() in which two parameters: "property" and "username" should be present. Including these two parameters when calling the function is essential for its proper functionality.
For Example: user(username: loggedInUser(),property: "firstName")
Add these parameters then it will work perfectly.