Skip to main content
hitomik2530
May 22, 2024
Question

Acme Exercise 5: Design Record Types - Error Evaluating UI Expression

  • May 22, 2024
  • 22 replies
  • 0 views

I have an error in Image colums when enter the following expression according to instructions in the part5 Dsign Record Types:
if(a!isNullOrEmpty(fv!row[recordType!AX
Vehicle.fields.image]), a!EXAMPLE_DOCUMENT_IMAGE(),
fv!row[recordType!AX Vehicle.fields.image])

Error message:
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 55]: User Does Not Have Rights to Perform this Operation


I have completed the exercises in the security part 3 of the Acme Auto application correctly.

How can I fix this?
appreciate all the help I can get. Thank You!

22 replies

stefanhelzle0001
May 22, 2024

It seems like your account does not have permission to access this image.

[mention:115d03e07c2843c691ef69b0951c7286:e9ed411860ed4f2ba0265705b8793d05] , I have seen this error with one of my colleagues as well. It seems to be some permission issue. Is that something you can address?

greg.wheeler
May 22, 2024

Hi [mention:453100a9827e4d319fcaa565f784f370:e9ed411860ed4f2ba0265705b8793d05] !

Can you confirm that your expression is using your W000AX record type object that you created earlier? 

May 23, 2024

Hi, i have the same problem, and i change the record type (mine wo112ax) and still having the same issue

greg.wheeler
May 23, 2024

Can you send us an email at academyonline@appian.com? I am unable to reproduce the issue but would like to learn more and determine the root cause.

greg.wheeler
May 23, 2024

 [mention:453100a9827e4d319fcaa565f784f370:e9ed411860ed4f2ba0265705b8793d05]  [mention:a517b5ca2ce8465f96e2b3fc3bf3893d:e9ed411860ed4f2ba0265705b8793d05] Thanks for letting us know about the error. After review, it looks like our base template for the AS_Vehicle table contained an extra row in error. This row contains an identifier for an image that your user does not have access to. While we determine an appropriate fix for all users, you can avoid the error by configuring your expression to avoid referencing the image field. In this instance, all vehicles will only display the default example image. Note: You will come across a similar scenario in Exercise 8 later in the learning path. 

edit: updated image for better readability

May 31, 2024

I have the encountered the same problem (note also that the "Acme Auto Solution Application" listed under point 1 of the Troubleshooting resources has the same error).

However, the above suggested solution causes a further 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 GridFieldColumn to Document. Details: CastInvalidCould not cast from GridFieldColumn to Document. Details: CastInvalid

´

greg.wheeler
May 31, 2024

I updated the image in the above post for better readability. Make sure you are including the () at the end of a!EXAMPLE_DOCUMENT_IMAGE

prasantap0900
August 1, 2024

Why are you using a!EXAMPLE_DOCUMENT_IMAGE() function under the document parameter? You just need to map or address the image which you will want to show. 

February 6, 2025

How do you map or address the image i want to show?