Skip to main content
Participating Frequently
Sep 24, 2022 12:52 PM UTC
Solved

Expression Evaluation Error

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

Participating Frequently
Sep 25, 2022 2:11 PM UTC

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

Inspiring
Sep 24, 2022 4:19 PM UTC

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
Sep 24, 2022 7:51 PM UTC

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.

Participating Frequently
Sep 25, 2022 7:09 AM UTC

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.