FileUploadField

Hi All,

We are getting this error while submitting the form which contains File Upload Field in 17.2 version.

Interface Definition: Expression evaluation error at function a!fileUploadField [line 53]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function fn!content_appian_internal [line 12]: Error evaluating function fn!content_appian_internal : Invalid Content ID

Please suggest the workaround. File upload is not working

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    are you trying to look for temporary document id in your code as Appian generates a temp doc/content ID initially before the document is being persisted in the DMS
  • Here is the code snippet
    -------------------------------------------------------------------------------
    a!sectionLayout(
    contents:{
    a!fileUploadField(
    label: "Supporting Documents:",
    target: cons!REQUEST_DOC_FOLDER,
    value: ri!documentIds,
    saveInto: {
    ri!documentIds

    }
    )
    }
    )
    -----------------------------------------------------------------------
    ri!documentIds-->Number(Integer)Array
    When I am submitting the form it is giving error:
    Could not display interface. Please check definition and inputs.
    Interface Definition: Expression evaluation error at function a!fileUploadField [line 154]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function fn!content_appian_internal [line 12]: Error evaluating function fn!content_appian_internal : Invalid Content ID
Reply
  • Here is the code snippet
    -------------------------------------------------------------------------------
    a!sectionLayout(
    contents:{
    a!fileUploadField(
    label: "Supporting Documents:",
    target: cons!REQUEST_DOC_FOLDER,
    value: ri!documentIds,
    saveInto: {
    ri!documentIds

    }
    )
    }
    )
    -----------------------------------------------------------------------
    ri!documentIds-->Number(Integer)Array
    When I am submitting the form it is giving error:
    Could not display interface. Please check definition and inputs.
    Interface Definition: Expression evaluation error at function a!fileUploadField [line 154]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function fn!content_appian_internal [line 12]: Error evaluating function fn!content_appian_internal : Invalid Content ID
Children