Step-by-Step #5 - Format the Image column

Hello, In Build An Application Step-by-Step #5. I am stuck on the Edit Record List Columns - Format the Image Column.

The error says, "Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 51]: User Does Not Have Rights to Perform this Operation".

I completed all the steps specified in the previous exercises. Appreciate all the help I can get. Thank you!

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Appian Employee
    in reply to calebs2672

    Hi  

    I suspect you have an older workspace that contains an image identifier in your vehicle record that you do not have access to. While this issue has been resolved for newer workspaces, you can resolve the issue by updating your expression as seen below. Keep in mind that this will cause all vehicles to have the placeholder image - but will resolve your issue. 

    Hope this helps! 

  • As I still couldn't get it to work I have not saved te changes and have left the expression as follows: 

    if(
    a!isNullOrEmpty(
    fv!row['recordType!W0SA Vehicle.fields.image']
    ),
    a!EXAMPLE_DOCUMENT_IMAGE(),
    fv!row['recordType!W0SA Vehicle.fields.image']
    )

    I am still recieving the following error message:

    Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 52]: User Does Not Have Rights to Perform this Operation

    I have read up a bit on images in Documentation. Am not sure what I need to do. I google translated the conversation above but am not sure how to carry out the advise given.

  • 0
    Certified Associate Developer
    in reply to Greg Wheeler

    Hi, I have the same issue and only a!EXAMPLE_DOCUMENT_IMAGE() works without an error, but of cause delivers the placeholder images.

    ----

    a!documentImage(
    document: a!EXAMPLE_DOCUMENT_IMAGE()
    )

    Causes the error:

    Error Evaluating UI Expression

    Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!documentImage [line 53]: Could not cast from DocumentImage to Document. Details: CastInvalidCould not cast from DocumentImage to Document. Details: CastInvalid

    ----

    if(
    a!isNullOrEmpty(
    fv!row[recordType!W"" Vehicle.fields.image]
    ),
    a!EXAMPLE_DOCUMENT_IMAGE(),
    fv!row[recordType!W"" Vehicle.fields.image])

    as stated in the course, causes the error:

    Error Evaluating UI Expression

    Expression evaluation error at function a!gridField_23r3 [line 51]: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!imageField [line 52]: User Does Not Have Rights to Perform this Operation

    ----

    How can this issue be resolved and images be shown?