MultipleFileUploadField - Embedded interface

Hi All,

I am using Appian 17.2 and loading contents from Appian in an embedded interface. When I try to use latest file upload component , UI is breaking with “An internal error has occurred.

Exception caught: com.appiancorp.core.expr.exceptions.IllegalSailComponentUseException: MultipleFileUploadField must be used within a SAIL component.”. Not sure about the root cause, please share your inputs

 

 

Thanks,

Lobin

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    A Score Level 1
    in reply to santoshd378
    Hi
    PFB code. This works in tempo and throws error only in embedded interface.
    a!fileUploadField(
    label: "Upload Documentation",
    instructions: cons!FILE_TYPE_MSG,
    labelPosition: "ABOVE",
    target: cons!TARGET_FOLDER,
    value: ri!docAdditionalDocumentation,
    maxSelections: 1,
    validations: with(
    local!invalidExtensions: difference(
    upper(
    fv!files.extension
    ),
    {
    "JPG",
    "JPEG",
    "PNG",
    "BMP",
    "PDF"
    }
    ),
    if(
    length(
    local!invalidExtensions
    ) > 0,
    cons!FILE_TYPE_VALIDATION_MSG,
    ""
    )
    ),
    saveInto: ri!docAdditionalDocumentation,
    required: false(),
    helpTooltip: ""
    )

    Thanks,
    Lobin
  • Use this component in SAIL form and process model as well then create an action for the process model. Now call this action in embedded interface with <appian-action> tag it should work.
  • 0
    A Score Level 1
    in reply to santoshd378
    Thanks for your response Santosh. That is how it was done already and even the embedded interface was working fine before. It stopped breaking only after adding this new SAIL component. Please note this application was built in 16.2 with embedded interface and we have upgraded recently to 17.2. After upgrading we are trying to use new file uploaded component which is throwing error in embedded interface and working in tempo.