Skip to main content
September 27, 2022
Question

A null parameter has been passed error on File Upload Component

  • September 27, 2022
  • 13 replies
  • 0 views

Hi All,

We are facing the errow : A null parameter has been passed as parameter 1 at function a!fileUploadField.

Is anyone aware what can be the possible scenario for this error?

Kindly advise.

Thanks and Regards,
Diksha

    13 replies

    gabriele.camilli
    September 27, 2022

    Hi,

    could you share the code? It would be helpful to understand the error

    dikshagAuthor
    September 28, 2022

    This is the code snippet. Strangely, this error is only faced by one of the users and others are able to upload files as expected.

    a!fileUploadField(
    target: cons!FILE_UPLOAD_FOLDER,
    maxSelections: 1,
    filenames: fv!file.name &"_APN_"&loggedInUser(),
    value: local!fileUpload,
    saveInto: { local!fileUpload,
    a!save( ri!fileUpload, save!value),
    a!save( ri!fileName,save!value)
    },
    validations: {}
    )

    stefanhelzle0001
    Brainy
    September 28, 2022

    Is there a specific reason to store the value into three different rule inputs/locals?

    Is this problem specific to that user in general, or a specific file this user wants to upload. In the latter case, please check whether that file has a size larger zero bytes.