I am facing this error in process model

Hello comminity,

Error Evaluating UI Expression Expression evaluation error [evaluation ID = e56c8:ec7b0] in rule 'tcs_collectdetails' at function a!fileUploadField [line 102]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function fn!content_appian_internal [line 35]:

please help me

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    Hi,

    Are you seeing this error in Interface or inside process model. Because the error message saying the issue is with file upload filed (which is interface component), and Appian won't have file upload component inside process model. Are you able to share your code, so that we can help to resolve your issue.

  • 0
    Certified Senior Developer

    Hi , Could you please share your code if possible so that we can check?

  • 0
    Certified Senior Developer

    The FORM on that you used has an expression error. 

    fn!content_appian_internal is not part of the OTB feature. It is probably part of a plugin created.

    Look at the part where you did the foreach.

  • ya this is a code

    a!formLayout(
    label: "Form",
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!textField(
    label: "First Name",
    labelPosition: "ABOVE",
    helpTooltip: "",
    placeholder: "",
    value: ri!employee.firstName,
    saveInto: ri!employee.firstName,
    refreshAfter: "UNFOCUS",
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Last Name",
    labelPosition: "ABOVE",
    value: ri!employee.lastName,
    saveInto: ri!employee.lastName,
    refreshAfter: "UNFOCUS",
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!radioButtonField(
    label: "Gender",
    labelPosition: "ABOVE",
    choiceLabels: { "Male", "Female" },
    choiceValues: { "Male", "Female" },
    value: ri!employee.gender,
    saveInto: ri!employee.gender,
    choiceLayout: "STACKED",
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Phone Number",
    labelPosition: "ABOVE",
    value: ri!employee.phoneNumber,
    saveInto: ri!employee.phoneNumber,
    refreshAfter: "UNFOCUS",
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    label: "Designation",
    labelPosition: "ABOVE",
    placeholder: "--- Select a Value ---",
    choiceLabels: { "SE", "SSE", "TL" },
    choiceValues: { "SE", "SSE", "TL" },
    value: ri!employee.designtion,
    saveInto: ri!employee.designtion,
    searchDisplay: "AUTO",
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    label: "Department",
    labelPosition: "ABOVE",
    placeholder: "--- Select a Value ---",
    choiceLabels: { "Dev", "Testing", "HR" },
    choiceValues: { "Dev", "Testing", "HR" },
    value: ri!employee.department,
    saveInto: ri!employee.department,
    searchDisplay: "AUTO",
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!fileUploadField(
    label: "Photo",
    labelPosition: "ABOVE",
    target: cons!TCS_PHOTOS,
    value: ri!employee.photo,
    saveInto: ri!employee.photo,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!fileUploadField(
    label: "Resume",
    labelPosition: "ABOVE",
    target: cons!TCS_RESUMES,
    value: ri!employee.resume,
    saveInto: ri!employee.resume,
    validations: {}
    )
    }
    )
    }
    ),
    rule!TS_Address(TCS_Address: ri!address)
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Submit",
    icon: "check",
    value: "Submitted",
    saveInto: {
    ri!buttonValue,
    a!save(
    ri!employee.createdBy,
    user(loggedInUser(), "firstName")
    ),
    a!save(ri!employee.createdOn, now()),
    a!save(ri!employee.isActive, true())
    },
    submit: true,
    style: "PRIMARY",
    loadingIndicator: true
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    icon: "times",
    value: "Cancelled",
    saveInto: ri!buttonValue,
    submit: true,
    style: "DESTRUCTIVE",
    validate: false
    )
    }
    )
    )

  • 0
    Certified Senior Developer
    in reply to Sunil

    Hi, Please dont post same code multiple times. Are you getting this error on interface designer page or in a process instance?

  • 0
    Certified Senior Developer
    in reply to Sunil

    can you tell us how did you resolve? it will help others. Thanks!

  • I do nothing but I done data sync in the process model