Unable to detach the file from file uploader.

Error : Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = PLZG0] : An error occurred while executing a save: Expression evaluation error: Cannot update List of Dep_Record; length of assign value list (0) does not match length of the list to update (1).

Desc: Have attached a file and when trying to detach the same file I am facing the above error.Please check and suggest.

Code : a!localVariables(
local!minimumRecord:1,
local!bulkUpload: a!refreshVariable(
value: a!forEach(
items: enumerate(local!minimumRecord),
expression: 'recordType!{f0769d64-67a8-4b44-897d-1f9e28718b03}EMP_RECORD'(
'recordType!{f0769d64-67a8-4b44-897d-1f9e28718b03}EMP_RECORD.fields.{c4a92bde-e02b-4695-a292-2ff46a89c88e}createdBy': loggedInUser(),
'recordType!{f0769d64-67a8-4b44-897d-1f9e28718b03}EMP_RECORD.fields.{de5c9d80-f57b-4035-a8f0-98af6439584e}createdDate': today()
)
)
),

{
a!forEach(
items: local!bulkUpload,
expression: a!fileUploadField(
label: "File Upload",
labelPosition: "ABOVE",
target: cons!DOC_FOLDER,
maxSelections: 1,
value: fv!item[EMP_Record.relationship.DEP_RECORD.fields.Doc],
saveInto: fv!item[EMP_Record.relationship.DEP_RECORD.fields.Doc],
validations: {}
)
),
a!buttonLayout(
primaryButtons: a!buttonWidget(
label: "add",
saveInto: { a!save(local!bulkUpload, append(local!bulkUpload, ri!addEmp)) }
)
)
}
)

  Discussion posts and replies are publicly visible

Top Replies