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
I think that this line is the issue
fileNames: "Excel Data " & now() & " " & user(),
The error message you see comes from the internal implementation. You try to call the user() function without passing any value. That will not work.