Skip to main content
September 24, 2022
Solved

Expression Evaluation Error

  • September 24, 2022
  • 13 replies
  • 1 view

HI I'm getting an error while creating a form 

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!imageField [line 60]: The image at index 1 in an image gallery component [label=""] has an invalid value for "document". "document" must not be null.

Please help me

Best answer by ujjwalr0002

Check this out .

a!imageField(
                  
                  images: if(
                    isnull(
                      ri!vehicle['recordType!{5f29c334-b8fd-43d7-aaf3-a50d45b1e0da}AS Vehicle.fields.{adfda79b-f400-47eb-a452-6dc179fd4c6d}vehicleImage']
                    ),
                    {},
                    a!documentImage(
                      document: ri!vehicle['recordType!{5f29c334-b8fd-43d7-aaf3-a50d45b1e0da}AS Vehicle.fields.{adfda79b-f400-47eb-a452-6dc179fd4c6d}vehicleImage']
                    )
                  )
                )

13 replies

September 24, 2022

As clearly mentioned in the error, the document id is null. Please check your code and make sure the document id will be there.

Participating Frequently
September 24, 2022

Hi, as Deepak said it is very clearly mentioned that the document ID passed is null one more thing here when using these types of components always try to apply to check whether the document passed is not null and the document ID passed is valid.

September 25, 2022

I'm a beginner can you please tell me how to resolve this error . I have created a Supervisor Form everything is working fine . But when I am trying to approve this form in process model it is showing this error.