Skip to main content
New Participant
May 9, 2024 5:49 PM UTC
Question

Expression evaluation error at function a!imageField [line 53]: The image at index 1 in an image gallery component [label=""] has an invalid value for "document". "document" must not be null.

I am new and working on the developer course. I am on exercise 8 create an interface, on the Create a Reusable Interface section. 

When I completed the steps to make AX_VehicleDetailsView and clicked save. It popped up with the interface! But this is the error that I got when it opened, and I don't understand where I go to fix this!

Thank you

    4 replies

    richardm900458
    Inspiring
    May 9, 2024 5:55 PM UTC

    intro: i did not do the specific exercise but some general information

    the error tells you already the issue :) ri!vehicle, your recordtype is a null value
    In result you don't have a value for vehicle.image neither there

    a!documentimage wont work properly with a null or empty value for the "document:" paramater
    you need a  picture aka document in your application and the ID of the document needs to be the value of ri!record[AC_vehicle.image] 


    perhaps this link helps you:
    docs.appian.com/.../Document_Image_Component.html

    edit: you can try the following in the test parameters of your rule input:
    docs.appian.com/.../reference-records.html

    New Participant
    May 10, 2024 3:28 PM UTC

    Ok this all makes sense! What I don't understand is that it hasn't asked me to add images so how do I get them ? Sorry as I am a beginner!

    richardm900458
    Inspiring
    May 10, 2024 6:52 PM UTC

    step 1:
    you create elements of the dype "document"


    davidj137213
    Brainy
    May 9, 2024 8:38 PM UTC

    The problem is that your parameter is null, so when Appian tries to find the document related to the vehicle, returns an error (there is no image for a null vehicle)